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

Method sendMessage

src/extension/flutter/flutter_daemon.ts:174–189  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

172 }
173
174 protected sendMessage(json: string) {
175 try {
176 super.sendMessage(json);
177 } catch (e) {
178 if (!this.hasShownTerminatedError && !this.isShuttingDown) {
179 this.hasShownTerminatedError = true;
180 void promptToReloadExtension(this.logger, {
181 prompt: "The Flutter Daemon has terminated.",
182 offerLog: true,
183 specificLog: config.flutterDaemonLogFile,
184 restartReason: ExtensionRestartReason.FlutterDaemonTerminatedSend,
185 });
186 throw e;
187 }
188 }
189 }
190
191 protected shouldHandleMessage(message: string): boolean {
192 // Everything in flutter is wrapped in [] so we can tell what to handle.

Callers 2

sendRequestFunction · 0.80
processServerRequestFunction · 0.80

Calls 1

promptToReloadExtensionFunction · 0.90

Tested by

no test coverage detected