public LiveTableDataSource(Workspace workspace, IDiagnosticService diagnosticService, string identifier, ExternalErrorDiagnosticUpdateSource?buildUpdateSource = null)
                : base(workspace)
            {
                _workspace  = workspace;
                _identifier = identifier;

                _tracker = new OpenDocumentTracker <DiagnosticTableItem>(_workspace);

                _diagnosticService = diagnosticService;
                ConnectToDiagnosticService(workspace, diagnosticService);

                ConnectToBuildUpdateSource(buildUpdateSource);
            }
예제 #2
0
            public LiveTableDataSource(IServiceProvider serviceProvider, Workspace workspace, IDiagnosticService diagnosticService, string identifier) :
                base(workspace)
            {
                _workspace       = workspace;
                _serviceProvider = serviceProvider;
                _identifier      = identifier;

                _tracker = new OpenDocumentTracker <DiagnosticData>(_workspace);

                _diagnosticService = diagnosticService;
                _diagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated;

                PopulateInitialData(workspace, diagnosticService);
            }
예제 #3
0
            public TableDataSource(IServiceProvider serviceProvider, Workspace workspace, IDiagnosticService diagnosticService, Guid identifier)
            {
                _workspace       = workspace;
                _serviceProvider = serviceProvider;
                _identifier      = identifier;
                _projectRanks    = ImmutableDictionary <ProjectId, int> .Empty;

                _tracker = new OpenDocumentTracker(_workspace);

                _diagnosticService = diagnosticService;
                _diagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated;

                ConnectToSolutionCrawlerService(_workspace);
            }
            public LiveTableDataSource(Workspace workspace, IThreadingContext threadingContext, IGlobalOptionService globalOptions, IDiagnosticService diagnosticService, string identifier, ExternalErrorDiagnosticUpdateSource?buildUpdateSource = null)
                : base(workspace, threadingContext)
            {
                _workspace     = workspace;
                _globalOptions = globalOptions;
                _identifier    = identifier;

                _tracker = new OpenDocumentTracker <DiagnosticTableItem>(_workspace);

                _diagnosticService = diagnosticService;
                ConnectToDiagnosticService(workspace, diagnosticService);

                ConnectToBuildUpdateSource(buildUpdateSource);
            }