public TextStyleHighlighterManager([NotNull] Lifetime lifetime, [NotNull] IHighlighterCustomization highlighterCustomization, [NotNull] DTE dte, [NotNull] DefaultTextControlSchemeManager textControlSchemeManager) { _highlighterCustomization = highlighterCustomization; _dte = dte; textControlSchemeManager.ColorsChanged.Advise(lifetime, ResetVsAttributesCache); }
public ClassUsageTextStyleProvider(Lifetime lifetime, IThreading threading, IHighlighterCustomization highlighterCustomization, DefaultTextControlSchemeManager textControlSchemeManager, HighlightingSettingsManager highlightingSettingsManager, ISettingsStore settingsStore) { this.threading = threading; this.highlighterCustomization = highlighterCustomization; this.highlightingSettingsManager = highlightingSettingsManager; this.settingsStore = settingsStore.BindToContextLive(lifetime, ContextRange.ApplicationWide); textControlSchemeManager.ColorsChanged.Advise(lifetime, Refresh); }
public TextStyleHighlighterManager( [NotNull] Lifetime lifetime, [NotNull] IHighlighterCustomization highlighterCustomization, [NotNull] ITextControlSchemeManager textControlSchemeManager, [NotNull] Lazy <Optional <IClassificationFormatMapService> > lazyClassificationFormatMapService, [NotNull] Lazy <Optional <IClassificationTypeRegistryService> > lazyClassificationTypeRegistryService) { _highlighterCustomization = highlighterCustomization; _lazyClassificationFormatMapService = lazyClassificationFormatMapService; _lazyClassificationTypeRegistryService = lazyClassificationTypeRegistryService; textControlSchemeManager.ColorsChanged.Advise(lifetime, ResetVsAttributesCache); }
private static TextStyle GetRegisteredForeColour(IHighlighterCustomization highlighterCustomization, string id) { var highlighterAttributes = highlighterCustomization.GetCustomizedRegisteredHighlighterAttributes(id); return TextStyle.FromForeColor(highlighterAttributes.Color); }
private static TextStyle GetVisualStudioForeColour(IHighlighterCustomization highlighterCustomization, IHighlighter highlighter) { var highlighterAttributes = highlighterCustomization.GetCustomizedHighlighterAttributes(highlighter); return TextStyle.FromForeColor(highlighterAttributes.Color); }
public TextStyleHighlighterManager([NotNull] Lifetime lifetime, [NotNull] IHighlighterCustomization highlighterCustomization, [NotNull] DTE dte, [NotNull] DefaultTextControlSchemeManager textControlSchemeManager) { _highlighterCustomization = highlighterCustomization; _dte = dte; textControlSchemeManager.ColorsChanged.Advise(lifetime, ResetVsAttributesCache); }