mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-21 03:36:14 +01:00
window - fix unhandled error in window tracker
This commit is contained in:
@@ -29,6 +29,8 @@ export class ActiveWindowManager extends Disposable {
|
||||
try {
|
||||
const windowId = await this.firstActiveWindowIdPromise;
|
||||
this.activeWindowId = (typeof this.activeWindowId === 'number') ? this.activeWindowId : windowId;
|
||||
} catch (error) {
|
||||
// ignore
|
||||
} finally {
|
||||
this.firstActiveWindowIdPromise = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user