We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fd68f commit feda8caCopy full SHA for feda8ca
src/vs/workbench/contrib/debug/node/debugAdapter.ts
@@ -289,7 +289,9 @@ export class ExecutableDebugAdapter extends StreamDebugAdapter {
289
// processes. Therefore we use TASKKILL.EXE
290
await this.cancelPendingRequests();
291
if (platform.isWindows) {
292
- return killTree(this.serverProcess!.pid!, true);
+ return killTree(this.serverProcess!.pid!, true).catch(() => {
293
+ this.serverProcess?.kill();
294
+ });
295
} else {
296
this.serverProcess.kill('SIGTERM');
297
return Promise.resolve(undefined);
0 commit comments