public ManagedEditAndContinueLanguageService(
     VisualStudioWorkspace workspace,
     IManagedEditAndContinueDebuggerService debuggerService,
     IDiagnosticAnalyzerService diagnosticService,
     EditAndContinueDiagnosticUpdateSource diagnosticUpdateSource)
 {
     _proxy            = new RemoteEditAndContinueServiceProxy(workspace);
     _debuggingService = workspace.Services.GetRequiredService <IDebuggingWorkspaceService>();
     _activeStatementTrackingService = workspace.Services.GetRequiredService <IActiveStatementTrackingService>();
     _debuggerService        = debuggerService;
     _diagnosticService      = diagnosticService;
     _diagnosticUpdateSource = diagnosticUpdateSource;
 }
示例#2
0
 internal EditAndContinueWorkspaceService(
     Workspace workspace,
     IActiveStatementTrackingService activeStatementTrackingService,
     IDiagnosticAnalyzerService diagnosticService,
     EditAndContinueDiagnosticUpdateSource diagnosticUpdateSource,
     IDebuggeeModuleMetadataProvider debugeeModuleMetadataProvider,
     Func <Project, CompilationOutputs>?testCompilationOutputsProvider = null,
     Action <DebuggingSessionTelemetry.Data>?testReportTelemetry       = null)
 {
     _workspace                     = workspace;
     _diagnosticService             = diagnosticService;
     _emitDiagnosticsUpdateSource   = diagnosticUpdateSource;
     _debugeeModuleMetadataProvider = debugeeModuleMetadataProvider;
     _trackingService               = activeStatementTrackingService;
     _debuggingSessionTelemetry     = new DebuggingSessionTelemetry();
     _editSessionTelemetry          = new EditSessionTelemetry();
     _documentsWithReportedDiagnosticsDuringRunMode = new HashSet <DocumentId>();
     _compilationOutputsProvider = testCompilationOutputsProvider ?? GetCompilationOutputs;
     _reportTelemetry            = testReportTelemetry ?? ReportTelemetry;
 }
 public VisualStudioDebugStateChangeListener(VisualStudioWorkspace workspace)
 {
     _workspace        = workspace;
     _debuggingService = workspace.Services.GetRequiredService <IDebuggingWorkspaceService>();
     _activeStatementTrackingService = workspace.Services.GetRequiredService <IActiveStatementTrackingService>();
 }
 public VisualStudioActiveStatementTracker(VisualStudioWorkspace workspace)
 {
     _workspace  = workspace;
     _encService = workspace.Services.GetRequiredService <IEditAndContinueWorkspaceService>();
     _activeStatementTrackingService = workspace.Services.GetRequiredService <IActiveStatementTrackingService>();
 }
        internal VsENCRebuildableProjectImpl(AbstractProject project)
        {
            _vsProject = project;

            _encService = _vsProject.VisualStudioWorkspace.Services.GetService<IEditAndContinueWorkspaceService>();
            _trackingService = _vsProject.VisualStudioWorkspace.Services.GetService<IActiveStatementTrackingService>();
            _notifications = _vsProject.VisualStudioWorkspace.Services.GetService<INotificationService>();

            _debugEncNotify = (IDebugEncNotify)project.ServiceProvider.GetService(typeof(ShellInterop.SVsShellDebugger));

            var componentModel = (IComponentModel)project.ServiceProvider.GetService(typeof(SComponentModel));
            _diagnosticProvider = componentModel.GetService<EditAndContinueDiagnosticUpdateSource>();
            _editorAdaptersFactoryService = componentModel.GetService<IVsEditorAdaptersFactoryService>();

            Debug.Assert(_encService != null);
            Debug.Assert(_trackingService != null);
            Debug.Assert(_diagnosticProvider != null);
            Debug.Assert(_editorAdaptersFactoryService != null);
        }
示例#6
0
 public ActiveStatementTagger(IActiveStatementTrackingService trackingService, ITextBuffer buffer)
 {
     _trackingService = trackingService;
     _trackingService.TrackingSpansChanged += OnTrackingSpansChanged;
     _buffer = buffer;
 }
示例#7
0
 public ActiveStatementSpanTracker(HostWorkspaceServices services)
 {
     _trackingService = services.GetRequiredService <IActiveStatementTrackingService>();
 }
示例#8
0
 public Tracker(IActiveStatementTrackingService activeStatementTrackingService)
 {
     _trackingService = activeStatementTrackingService;
 }