mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
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:
@@ -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() });
|
||||
|
||||
Reference in New Issue
Block a user