protected override void AddHighlighting(IHighlightingConsumer consumer, ICSharpDeclaration element, string text,
                                         string tooltip,
                                         IReadOnlyCallGraphContext context)
 {
     if (RiderIconProviderUtil.IsCodeVisionEnabled(SettingsStore.BoundSettingsStore, myFieldUsageProvider.ProviderId,
                                                   () => { base.AddHighlighting(consumer, element, text, tooltip, context); }, out var useFallback))
     {
         if (!useFallback)
         {
             consumer.AddImplicitConfigurableHighlighting(element);
         }
         myFieldUsageProvider.AddHighlighting(consumer, element, element.DeclaredElement, text,
                                              tooltip, text, myIconHost.Transform(InsightUnityIcons.InsightUnity.Id), GetActions(element),
                                              RiderIconProviderUtil.GetExtraActions(mySolutionTracker, myBackendUnityHost));
     }
 }
 protected override void AddHighlighting(IHighlightingConsumer consumer, ICSharpDeclaration element, string text,
                                         string tooltip,
                                         DaemonProcessKind kind)
 {
     if (RiderIconProviderUtil.IsCodeVisionEnabled(Settings, myFieldUsageProvider.ProviderId,
                                                   () => { base.AddHighlighting(consumer, element, text, tooltip, kind); }, out var useFallback))
     {
         if (!useFallback)
         {
             consumer.AddImplicitConfigurableHighlighting(element);
         }
         myFieldUsageProvider.AddHighlighting(consumer, element, element.DeclaredElement, text,
                                              tooltip, text, myIconHost.Transform(InsightUnityIcons.InsightUnity.Id), GetActions(element),
                                              RiderIconProviderUtil.GetExtraActions(mySolutionTracker, myConnectionTracker));
     }
 }
Esempio n. 3
0
        protected override void AddHighlighting(IHighlightingConsumer consumer, ICSharpDeclaration element, string text, string tooltip,
                                                DaemonProcessKind kind)
        {
            var iconId = element.HasHotIcon(CallGraphSwaExtensionProvider, SettingsStore.BoundSettingsStore, MarksProvider, kind, ElementIdProvider)
                ? InsightUnityIcons.InsightHot.Id
                : InsightUnityIcons.InsightUnity.Id;

            if (RiderIconProviderUtil.IsCodeVisionEnabled(SettingsStore.BoundSettingsStore, myFieldUsageProvider.ProviderId,
                                                          () => { base.AddHighlighting(consumer, element, text, tooltip, kind); }, out var useFallback))
            {
                if (!useFallback)
                {
                    consumer.AddImplicitConfigurableHighlighting(element);
                }
                myFieldUsageProvider.AddHighlighting(consumer, element, element.DeclaredElement, text,
                                                     tooltip, text, myIconHost.Transform(iconId), GetActions(element),
                                                     RiderIconProviderUtil.GetExtraActions(mySolutionTracker, myBackendUnityHost));
            }
        }