private void CleanupSuppressionHandling()
 {
     delegateInjector?.Dispose();
     delegateInjector = null;
     (sonarqubeIssueProvider as IDisposable)?.Dispose();
     sonarqubeIssueProvider = null;
 }
        private void SetupSuppressionHandling()
        {
            var componentModel = (IComponentModel)serviceProvider.GetService(typeof(SComponentModel));
            var workspace      = componentModel.GetService <VisualStudioWorkspace>();
            var solution       = this.serviceProvider.GetService <SVsSolution, IVsSolution>();

            liveIssueFactory       = new LiveIssueFactory(workspace, solution);
            delegateInjector       = new DelegateInjector(ShouldIssueBeReported, sonarLintOutput);
            sonarqubeIssueProvider = new SonarQubeIssuesProvider(sonarQubeService, this.activeSolutionBoundTracker.ProjectKey,
                                                                 timerFactory);
        }
Beispiel #3
0
 private void SetupSuppressionHandling()
 {
     liveIssueFactory       = new LiveIssueFactory(serviceProvider);
     delegateInjector       = new DelegateInjector(ShouldIssueBeReported, serviceProvider);
     sonarqubeIssueProvider = new SonarQubeIssuesProvider(sonarQubeService, activeSolutionBoundTracker, timerFactory);
 }