Skip to content

Commit 7ad1fb3

Browse files
authored
Aux window: Alt+f4 closes the workspace instead of the aux window (fix microsoft#196239) (microsoft#196752)
1 parent 1986bda commit 7ad1fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/electron-sandbox/actions/windowActions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ export class CloseWindowAction extends Action2 {
6262
override async run(accessor: ServicesAccessor): Promise<void> {
6363
const nativeHostService = accessor.get(INativeHostService);
6464

65+
const window = getActiveWindow();
66+
if (isAuxiliaryWindow(window)) {
67+
return nativeHostService.closeWindowById(await window.vscodeWindowId);
68+
}
69+
6570
return nativeHostService.closeWindow();
6671
}
6772
}

0 commit comments

Comments
 (0)