diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index 17a53d9dc..5751aedfc 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -428,6 +428,11 @@ namespace ICSharpCode.ILSpy.TextView foldingManager = FoldingManager.Install(textEditor.TextArea); foldingManager.UpdateFoldings(textOutput.Foldings.OrderBy(f => f.StartOffset), -1); Debug.WriteLine(" Updating folding: {0}", w.Elapsed); w.Restart(); + } else if (highlighting?.Name == "XML") { + foldingManager = FoldingManager.Install(textEditor.TextArea); + var foldingStrategy = new XmlFoldingStrategy(); + foldingStrategy.UpdateFoldings(foldingManager, textEditor.Document); + Debug.WriteLine(" Updating folding: {0}", w.Elapsed); w.Restart(); } } #endregion