Exemplo n.º 1
0
 public Data(EditSessionTelemetry telemetry)
 {
     RudeEdits                    = telemetry._rudeEdits.AsImmutable();
     EmitErrorIds                 = telemetry._emitErrorIds.AsImmutable();
     HadCompilationErrors         = telemetry._hadCompilationErrors;
     HadRudeEdits                 = telemetry._hadRudeEdits;
     HadValidChanges              = telemetry._hadValidChanges;
     HadValidInsignificantChanges = telemetry._hadValidInsignificantChanges;
 }
Exemplo n.º 2
0
 public Data(EditSessionTelemetry telemetry)
 {
     RudeEdits                    = telemetry._rudeEdits.AsImmutable();
     EmitErrorIds                 = telemetry._emitErrorIds.AsImmutable();
     HadCompilationErrors         = telemetry._hadCompilationErrors;
     HadRudeEdits                 = telemetry._hadRudeEdits;
     HadValidChanges              = telemetry._hadValidChanges;
     HadValidInsignificantChanges = telemetry._hadValidInsignificantChanges;
     InBreakState                 = telemetry._inBreakState;
     Capabilities                 = telemetry._capabilities;
     IsEmpty = telemetry.IsEmpty;
 }
            public Data(EditSessionTelemetry telemetry)
            {
                Contract.ThrowIfNull(telemetry._inBreakState);

                RudeEdits                    = telemetry._rudeEdits.AsImmutable();
                EmitErrorIds                 = telemetry._emitErrorIds.AsImmutable();
                ProjectsWithValidDelta       = telemetry._projectsWithValidDelta.AsImmutable();
                HadCompilationErrors         = telemetry._hadCompilationErrors;
                HadRudeEdits                 = telemetry._hadRudeEdits;
                HadValidChanges              = telemetry._hadValidChanges;
                HadValidInsignificantChanges = telemetry._hadValidInsignificantChanges;
                InBreakState                 = telemetry._inBreakState.Value;
                Capabilities                 = telemetry._capabilities;
                IsEmpty   = telemetry.IsEmpty;
                Committed = telemetry._committed;
            }
 internal EditAndContinueWorkspaceService(
     Workspace workspace,
     IDiagnosticAnalyzerService diagnosticService,
     EditAndContinueDiagnosticUpdateSource diagnosticUpdateSource,
     IDebuggeeModuleMetadataProvider debugeeModuleMetadataProvider,
     Func <Project, CompilationOutputs>?testCompilationOutputsProvider = null,
     Action <DebuggingSessionTelemetry.Data>?testReportTelemetry       = null)
 {
     _workspace                     = workspace;
     _diagnosticService             = diagnosticService;
     _emitDiagnosticsUpdateSource   = diagnosticUpdateSource;
     _debugeeModuleMetadataProvider = debugeeModuleMetadataProvider;
     _debuggingSessionTelemetry     = new DebuggingSessionTelemetry();
     _editSessionTelemetry          = new EditSessionTelemetry();
     _documentsWithReportedDiagnosticsDuringRunMode = new HashSet <DocumentId>();
     _compilationOutputsProvider = testCompilationOutputsProvider ?? GetCompilationOutputs;
     _reportTelemetry            = testReportTelemetry ?? ReportTelemetry;
 }
 internal EditAndContinueWorkspaceService(
     Workspace workspace,
     IActiveStatementTrackingService activeStatementTrackingService,
     ICompilationOutputsProviderService compilationOutputsProvider,
     IDiagnosticAnalyzerService diagnosticService,
     EditAndContinueDiagnosticUpdateSource diagnosticUpdateSource,
     IActiveStatementProvider activeStatementProvider,
     IDebuggeeModuleMetadataProvider debugeeModuleMetadataProvider,
     Action <DebuggingSessionTelemetry.Data>?reportTelemetry = null)
 {
     _workspace                     = workspace;
     _diagnosticService             = diagnosticService;
     _emitDiagnosticsUpdateSource   = diagnosticUpdateSource;
     _activeStatementProvider       = activeStatementProvider;
     _debugeeModuleMetadataProvider = debugeeModuleMetadataProvider;
     _trackingService               = activeStatementTrackingService;
     _debuggingSessionTelemetry     = new DebuggingSessionTelemetry();
     _editSessionTelemetry          = new EditSessionTelemetry();
     _documentsWithReportedDiagnosticsDuringRunMode = new HashSet <DocumentId>();
     _compilationOutputsProvider = compilationOutputsProvider;
     _reportTelemetry            = reportTelemetry ?? ReportTelemetry;
 }