( response: DebugProtocol.RestartResponse, args: DebugProtocol.RestartArguments, )
| 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. |
nothing calls this directly
no test coverage detected