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

Method restartRequest

src/debug/web_debug_impl.ts:172–181  ·  view source on GitHub ↗
(
		response: DebugProtocol.RestartResponse,
		args: DebugProtocol.RestartArguments,
	)

Source from the content-addressed store, hash-verified

170 }
171
172 protected async restartRequest(
173 response: DebugProtocol.RestartResponse,
174 args: DebugProtocol.RestartArguments,
175 ): Promise<void> {
176 this.sendEvent(new Event("dart.hotRestartRequest"));
177 this.sendEvent(new ContinuedEvent(0, true));
178 this.reloadPackageMap();
179 await this.performReload(true, { reason: restartReasonManual });
180 super.restartRequest(response, args);
181 }
182
183 private reloadPackageMap(): void {
184 // Reload the package map in case the user modified the packages.

Callers

nothing calls this directly

Calls 3

reloadPackageMapMethod · 0.95
performReloadMethod · 0.95
sendEventMethod · 0.80

Tested by

no test coverage detected