public VisualStudioDiagnosticListTable( SVsServiceProvider serviceProvider, VisualStudioWorkspace workspace, IDiagnosticService diagnosticService, ExternalErrorDiagnosticUpdateSource errorSource, ITableManagerProvider provider) : this(serviceProvider, (Workspace)workspace, diagnosticService, errorSource, provider) { ConnectWorkspaceEvents(); _errorList = serviceProvider.GetService(typeof(SVsErrorList)) as IErrorList; if (_errorList == null) { AddInitialTableSource(workspace.CurrentSolution, _liveTableSource); return; } _errorList.PropertyChanged += OnErrorListPropertyChanged; AddInitialTableSource(workspace.CurrentSolution, GetCurrentDataSource()); SuppressionStateColumnDefinition.SetDefaultFilter(_errorList.TableControl); if (ErrorListHasFullSolutionAnalysisButton()) { SetupErrorListFullSolutionAnalysis(workspace); } }
public VisualStudioDiagnosticListTable( VisualStudioWorkspaceImpl workspace, IDiagnosticService diagnosticService, ITableManagerProvider provider, IErrorList errorList) : base(workspace, provider) { _errorList = errorList; _liveTableSource = new LiveTableDataSource(workspace, diagnosticService, IdentifierString); _buildTableSource = new BuildTableDataSource(workspace, workspace.ExternalErrorDiagnosticUpdateSource); AddInitialTableSource(Workspace.CurrentSolution, GetCurrentDataSource()); ConnectWorkspaceEvents(); _errorList.PropertyChanged += OnErrorListPropertyChanged; SuppressionStateColumnDefinition.SetDefaultFilter(_errorList.TableControl); }