Skip to content

Commit

Permalink
! Workaround for a bug in VS that prevented syntax highlight from wor…
Browse files Browse the repository at this point in the history
…king in output pane
  • Loading branch information
wmjordan committed Sep 25, 2022
1 parent 6f110e2 commit d3a1553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Codist/SyntaxHighlight/HighlightDecorator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public HighlightDecorator(IWpfTextView view) {
}
}
else {
Decorate(FormatStore.ClassificationTypeStore.Keys, false);
Decorate(_ClassificationFormatMap.CurrentPriorityOrder, false);
}
_EditorFormatMap.FormatMappingChanged += FormatUpdated;
}
Expand Down Expand Up @@ -101,7 +101,7 @@ void FormatUpdated(object sender, EventArgs e) {
if (__DefaultFontFamily == defaultProperties.Typeface.FontFamily && __DefaultFontSize == defaultProperties.FontRenderingEmSize) {
return;
}
Debug.WriteLine("Default text properties changed.");
Debug.WriteLineIf(__DefaultFontFamily != null, "Default text properties changed.");
__DefaultFontFamily = defaultProperties.Typeface.FontFamily;
__DefaultFontSize = defaultProperties.FontRenderingEmSize;
// hack: it is weird that this property is not in sync with the Text editor format, we have to force that
Expand Down

0 comments on commit d3a1553

Please sign in to comment.