aux window - some polish (#197510)

- seed the aux window ID based on the main one
- avoid using non-main windows for `getActiveWindowId`
This commit is contained in:
Benjamin Pasero
2023-11-06 08:22:33 +01:00
committed by GitHub
parent 14678c041f
commit 6454416d29
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ export const { registerWindow, getWindows, getWindowsCount, getWindowId, onDidRe
const mainWindow = window as CodeWindow;
if (typeof mainWindow.vscodeWindowId !== 'number') {
Object.defineProperty(window, 'vscodeWindowId', {
get: () => -1
get: () => 1
});
}
windows.set(mainWindow.vscodeWindowId, { window: mainWindow, disposables: new DisposableStore() });