public InProgressState(ExternalErrorDiagnosticUpdateSource owner, Solution solution) { _owner = owner; Solution = solution; // let people know build has started _owner.RaiseBuildProgressChanged(BuildProgress.Started); }
public InprogressState(ExternalErrorDiagnosticUpdateSource owner, Solution solution) { _owner = owner; _solution = solution; // let people know build has started _owner.RaiseBuildStarted(started: true); }
public InprogressState(ExternalErrorDiagnosticUpdateSource owner) { _owner = owner; // let people know build has started // TODO: to be more accurate, it probably needs to be counted. but for now, // I think the way it is doing probably enough. _owner.RaiseBuildStarted(started: true); }
public ProjectExternalErrorReporter(ProjectId projectId, string errorCodePrefix, IServiceProvider serviceProvider) { _projectId = projectId; _errorCodePrefix = errorCodePrefix; _diagnosticProvider = serviceProvider.GetMefService <ExternalErrorDiagnosticUpdateSource>(); _workspace = serviceProvider.GetMefService <VisualStudioWorkspaceImpl>(); Debug.Assert(_diagnosticProvider != null); Debug.Assert(_workspace != null); }
public ProjectExternalErrorReporter(ProjectId projectId, string errorCodePrefix, VisualStudioWorkspace workspace, ExternalErrorDiagnosticUpdateSource diagnosticProvider) { Debug.Assert(workspace != null); // TODO: re-enable this assert; right now it'll fail in unit tests // Debug.Assert(diagnosticProvider != null); _projectId = projectId; _errorCodePrefix = errorCodePrefix; _workspace = workspace; _diagnosticProvider = diagnosticProvider; }
public ProjectExternalErrorReporter(ProjectId projectId, string errorCodePrefix, VisualStudioWorkspace workspace, ExternalErrorDiagnosticUpdateSource diagnosticProvider) { Debug.Assert(projectId != null); Debug.Assert(errorCodePrefix != null); Debug.Assert(workspace != null); Debug.Assert(diagnosticProvider != null); _projectId = projectId; _errorCodePrefix = errorCodePrefix; _workspace = workspace; _diagnosticProvider = diagnosticProvider; KnownUIContexts.SolutionBuildingContext.WhenActivated(() => { KnownUIContexts.SolutionBuildingContext.UIContextChanged += OnSolutionBuild; _diagnosticProvider.OnSolutionBuildStarted(); }); }