Пример #1
0
            public InProgressState(ExternalErrorDiagnosticUpdateSource owner, Solution solution)
            {
                _owner   = owner;
                Solution = solution;

                // let people know build has started
                _owner.RaiseBuildProgressChanged(BuildProgress.Started);
            }
Пример #2
0
            public InprogressState(ExternalErrorDiagnosticUpdateSource owner, Solution solution)
            {
                _owner    = owner;
                _solution = solution;

                // let people know build has started
                _owner.RaiseBuildStarted(started: true);
            }
Пример #3
0
            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);
        }
Пример #5
0
        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;
        }
Пример #6
0
        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();
            });
        }