internal EditAndContinueWorkspaceService( Workspace workspace, IActiveStatementSpanTracker activeStatementSpanTracker, IDiagnosticAnalyzerService diagnosticService, EditAndContinueDiagnosticUpdateSource diagnosticUpdateSource, IDebuggeeModuleMetadataProvider debugeeModuleMetadataProvider, Func <Project, CompilationOutputs>?testCompilationOutputsProvider = null, Action <DebuggingSessionTelemetry.Data>?testReportTelemetry = null) { _workspace = workspace; _diagnosticService = diagnosticService; _emitDiagnosticsUpdateSource = diagnosticUpdateSource; _debugeeModuleMetadataProvider = debugeeModuleMetadataProvider; _activeStatementSpanTracker = activeStatementSpanTracker; _debuggingSessionTelemetry = new DebuggingSessionTelemetry(); _editSessionTelemetry = new EditSessionTelemetry(); _documentsWithReportedDiagnosticsDuringRunMode = new HashSet <DocumentId>(); _compilationOutputsProvider = testCompilationOutputsProvider ?? GetCompilationOutputs; _reportTelemetry = testReportTelemetry ?? ReportTelemetry; }
public ActiveStatementSpanTrackerFactory(HostWorkspaceServices services) { _tracker = new Tracker(services.GetRequiredService <IActiveStatementTrackingService>()); }