Skip to content

Commit d9a70c4

Browse files
authored
Wait for disconnect response before terminating DA (microsoft#166137)
Fix microsoft#165138
1 parent 8cae5f6 commit d9a70c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/browser/rawDebugSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ export class RawDebugSession implements IDisposable {
569569
args.suspendDebuggee = suspendDebuggee;
570570
}
571571

572-
this.send('disconnect', args, undefined, 2000);
572+
await this.send('disconnect', args, undefined, 2000);
573573
} catch (e) {
574574
// Catch the potential 'disconnect' error - no need to show it to the user since the adapter is shutting down
575575
} finally {

0 commit comments

Comments
 (0)