@@ -12,6 +12,7 @@ import 'package:analysis_server/protocol/protocol_constants.dart'
1212import 'package:analysis_server/src/analysis_server.dart' ;
1313import 'package:analysis_server/src/lsp/lsp_socket_server.dart' ;
1414import 'package:analysis_server/src/server/crash_reporting.dart' ;
15+ import 'package:analysis_server/src/server/crash_reporting_attachments.dart' ;
1516import 'package:analysis_server/src/server/detachable_filesystem_manager.dart' ;
1617import 'package:analysis_server/src/server/dev_server.dart' ;
1718import 'package:analysis_server/src/server/diagnostic_server.dart' ;
@@ -287,14 +288,17 @@ class Driver implements ServerStarter {
287288 /// should be used to compute relevance scores.
288289 static const String USE_NEW_RELEVANCE = 'use-new-relevance' ;
289290
290- /// The instrumentation service that is to be used by the analysis server.
291- InstrumentationService instrumentationService;
291+ /// The builder for attachments that should be included into crash reports.
292+ CrashReportingAttachmentsBuilder crashReportingAttachmentsBuilder =
293+ CrashReportingAttachmentsBuilder .empty;
292294
293- /// *
294295 /// An optional manager to handle file systems which may not always be
295296 /// available.
296297 DetachableFileSystemManager detachableFileSystemManager;
297298
299+ /// The instrumentation service that is to be used by the analysis server.
300+ InstrumentationService instrumentationService;
301+
298302 HttpAnalysisServer httpServer;
299303
300304 Driver ();
@@ -455,6 +459,7 @@ class Driver implements ServerStarter {
455459 analysisServerOptions,
456460 parser,
457461 dartSdkManager,
462+ crashReportingAttachmentsBuilder,
458463 instrumentationService,
459464 RequestStatisticsHelper (),
460465 analytics,
@@ -468,6 +473,7 @@ class Driver implements ServerStarter {
468473 AnalysisServerOptions analysisServerOptions,
469474 CommandLineParser parser,
470475 DartSdkManager dartSdkManager,
476+ CrashReportingAttachmentsBuilder crashReportingAttachmentsBuilder,
471477 InstrumentationService instrumentationService,
472478 RequestStatisticsHelper requestStatistics,
473479 telemetry.Analytics analytics,
@@ -500,6 +506,7 @@ class Driver implements ServerStarter {
500506 final socketServer = SocketServer (
501507 analysisServerOptions,
502508 dartSdkManager,
509+ crashReportingAttachmentsBuilder,
503510 instrumentationService,
504511 requestStatistics,
505512 diagnosticServer,
0 commit comments