Skip to content

Commit 80a0d88

Browse files
authored
aux window - fix confirm on close (microsoft#201300)
1 parent b21537c commit 80a0d88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/services/auxiliaryWindow/electron-sandbox/auxiliaryWindowService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class NativeAuxiliaryWindow extends AuxiliaryWindow {
4646
}
4747

4848
e.preventDefault();
49+
e.returnValue = true;
4950

5051
const confirmed = await this.instantiationService.invokeFunction(accessor => NativeWindow.confirmOnShutdown(accessor, ShutdownReason.CLOSE));
5152
if (confirmed) {

0 commit comments

Comments
 (0)