Skip to content

Commit

Permalink
+ Displayed preview for colors in symbol tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jul 24, 2021
1 parent b53f007 commit 6e24eff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Codist/Controls/ToolTipFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ public static ThemedToolTip CreateToolTip(ISymbol symbol, bool forMemberList, Se
ShowXmlDocSummary(symbol, context.SemanticModel.Compilation, tip);
}
ShowNumericForms(symbol, tip);
if (symbol.Kind == SymbolKind.Property && Config.Instance.SymbolToolTipOptions.MatchFlags(SymbolToolTipOptions.Colors)) {
var preview = QuickInfo.ColorQuickInfo.PreviewColorProperty(symbol as IPropertySymbol, false);
if (preview != null) {
tip.Add(preview);
}
}
return tip;
}

Expand Down

0 comments on commit 6e24eff

Please sign in to comment.