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

Function initializeRequest

src/debug/dart_debug_impl.ts:91–109  ·  view source on GitHub ↗
(
		response: DebugProtocol.InitializeResponse,
		args: DebugProtocol.InitializeRequestArguments,
	)

Source from the content-addressed store, hash-verified

89 }
90
91 protected initializeRequest(
92 response: DebugProtocol.InitializeResponse,
93 args: DebugProtocol.InitializeRequestArguments,
94 ): void {
95 response.body = response.body || {};
96 response.body.supportsConfigurationDoneRequest = true;
97 response.body.supportsEvaluateForHovers = true;
98 response.body.supportsDelayedStackTraceLoading = true;
99 response.body.supportsConditionalBreakpoints = true;
100 response.body.supportsLogPoints = true;
101 response.body.supportsTerminateRequest = true;
102 response.body.supportsRestartFrame = true;
103 response.body.supportsClipboardContext = true;
104 response.body.exceptionBreakpointFilters = [
105 { filter: "All", label: "All Exceptions", default: false },
106 { filter: "Unhandled", label: "Uncaught Exceptions", default: true },
107 ];
108 this.sendResponse(response);
109 }
110
111 protected async launchRequest(response: DebugProtocol.LaunchResponse, args: DartLaunchArgs & DebugProtocol.LaunchRequestArguments): Promise<void> {
112 if (!args || !args.dartSdkPath || (this.requiresProgram && !args.program)) {

Callers

nothing calls this directly

Calls 1

sendResponseMethod · 0.80

Tested by

no test coverage detected