Browse Source

Fix #1496: Disable automated URI/URL linking in decompiler view.

pull/1515/head
Siegfried Pammer 6 years ago
parent
commit
8d7f593620
  1. 2
      ILSpy/AboutPage.cs
  2. 2
      ILSpy/TextView/AvalonEditTextOutput.cs
  3. 2
      ILSpy/TextView/DecompilerTextView.cs

2
ILSpy/AboutPage.cs

@ -57,7 +57,7 @@ namespace ICSharpCode.ILSpy @@ -57,7 +57,7 @@ namespace ICSharpCode.ILSpy
public static void Display(DecompilerTextView textView)
{
AvalonEditTextOutput output = new AvalonEditTextOutput();
AvalonEditTextOutput output = new AvalonEditTextOutput() { EnableHyperlinks = true };
output.WriteLine(Resources.ILSpyVersion + RevisionClass.FullVersion);
output.AddUIElement(
delegate {

2
ILSpy/TextView/AvalonEditTextOutput.cs

@ -94,6 +94,8 @@ namespace ICSharpCode.ILSpy.TextView @@ -94,6 +94,8 @@ namespace ICSharpCode.ILSpy.TextView
internal readonly List<NewFolding> Foldings = new List<NewFolding>();
internal readonly DefinitionLookup DefinitionLookup = new DefinitionLookup();
internal bool EnableHyperlinks { get; set; }
/// <summary>Embedded UIElements, see <see cref="UIElementGenerator"/>.</summary>
internal readonly List<KeyValuePair<int, Lazy<UIElement>>> UIElements = new List<KeyValuePair<int, Lazy<UIElement>>>();

2
ILSpy/TextView/DecompilerTextView.cs

@ -381,6 +381,8 @@ namespace ICSharpCode.ILSpy.TextView @@ -381,6 +381,8 @@ namespace ICSharpCode.ILSpy.TextView
references = textOutput.References;
definitionLookup = textOutput.DefinitionLookup;
textEditor.SyntaxHighlighting = highlighting;
textEditor.Options.EnableEmailHyperlinks = textOutput.EnableHyperlinks;
textEditor.Options.EnableHyperlinks = textOutput.EnableHyperlinks;
if (activeRichTextColorizer != null)
textEditor.TextArea.TextView.LineTransformers.Remove(activeRichTextColorizer);
if (textOutput.HighlightingModel != null) {

Loading…
Cancel
Save