(json: string)
| 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. |
no test coverage detected