private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs e)
 {
     // NB assumes exception handling is done by the AnalysisRequester
     if (activeSolutionBoundTracker.CurrentConfiguration.Mode != NewConnectedMode.SonarLintMode.Standalone)
     {
         logger.WriteLine(AnalysisStrings.ConfigMonitor_SolutionBound);
         analysisRequester.RequestAnalysis();
     }
 }
 private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs binding)
 {
     if (binding.Configuration.Mode != NewConnectedMode.SonarLintMode.Standalone)
     {
         VisualStudioStatusBarHelper.AddStatusBarIcon(notificationIcon);
         notifications.StartAsync(binding.Configuration.Project.ProjectKey, notificationData);
     }
     else
     {
         notifications.Stop();
         VisualStudioStatusBarHelper.RemoveStatusBarIcon(notificationIcon);
     }
 }
Esempio n. 3
0
 private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs binding)
 {
     if (binding.IsBound)
     {
         VisualStudioStatusBarHelper.AddStatusBarIcon(notificationIcon);
         notifications.StartAsync(binding.ProjectKey, notificationData);
     }
     else
     {
         notifications.Stop();
         VisualStudioStatusBarHelper.RemoveStatusBarIcon(notificationIcon);
     }
 }
        private async void OnSolutionBoundChanged(object sender, ActiveSolutionBindingEventArgs eventArgs)
        {
            if (solutionBoundTacker.IsActiveSolutionBound)
            {
                await SynchronizeSuppressedIssues();

                refreshTimer.Start();
            }
            else
            {
                cachedSuppressedIssues = null;
                refreshTimer.Stop();
            }
        }
        private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs binding)
        {
            if (notificationIcon == null)
            {
                notificationIcon             = new NotificationIndicator();
                notificationIcon.DataContext = notifications.Model;
                VisualStudioStatusBarHelper.AddStatusBarIcon(notificationIcon);
            }

            if (binding.IsBound)
            {
                notifications.StartAsync(binding.ProjectKey, notificationData);
            }
            else
            {
                notifications.Stop();
            }
        }
 private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs e)
 {
     RefreshWorkflow(e.Configuration);
 }
Esempio n. 7
0
 private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs binding)
 {
     SafePerformOpOnUIThread(() => Refresh(binding.Configuration));
 }
 private async void ActiveSolutionBoundTracker_SolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs e)
 {
     await Sync();
 }
Esempio n. 9
0
 private void OnSolutionBindingChanged(object sender, ActiveSolutionBindingEventArgs e)
 {
     RefreshSuppresionHandling();
 }
 public void SimulateSolutionBindingChanged(ActiveSolutionBindingEventArgs binding)
 {
     SolutionBindingChanged(this, binding);
 }