MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / constructor

Method constructor

src/shared/services/tooling_daemon.ts:38–53  ·  view source on GitHub ↗
(
		logger: Logger,
		sdks: DartSdks,
		protected readonly dartCapabilities: DartCapabilities,
		additionalArgs: string[],
		maxLogLineLength: number | undefined,
		getToolEnv: () => any,
		private readonly promptToReloadExtension: (logger: Logger, options: { prompt?: string; buttonText?: string; offerLog?: boolean; specificLog?: string; useError?: boolean; restartReason: ExtensionRestartReason }) => Promise<void>,
	)

Source from the content-addressed store, hash-verified

36 public readonly registeredServiceMethods = new Set<string>();
37
38 constructor(
39 logger: Logger,
40 sdks: DartSdks,
41 protected readonly dartCapabilities: DartCapabilities,
42 additionalArgs: string[],
43 maxLogLineLength: number | undefined,
44 getToolEnv: () => any,
45 private readonly promptToReloadExtension: (logger: Logger, options: { prompt?: string; buttonText?: string; offerLog?: boolean; specificLog?: string; useError?: boolean; restartReason: ExtensionRestartReason }) => Promise<void>,
46 ) {
47 this.logger = new CategoryLogger(logger, LogCategory.DartToolingDaemon);
48 this.dtdProcess = new DartToolingDaemonProcess(this.logger, sdks, additionalArgs, maxLogLineLength, getToolEnv);
49 this.disposables.push(this.dtdProcess);
50
51 void this.dtdProcess.dtdUri.then(() => this.connect());
52 void this.dtdProcess.processExit.then((codes) => this.handleProcessExit(codes));
53 }
54
55 public get dtdUri(): Promise<string | undefined> {
56 return this.dtdProcess.dtdUri;

Callers

nothing calls this directly

Calls 2

connectMethod · 0.95
handleProcessExitMethod · 0.95

Tested by

no test coverage detected