mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
smoke - improve app lifecycle (#139693)
* smoke - make sure app is closed when `app.start` fails * smoke - `capturePage` to fallback to active window * smoke - more logging around remote resolving
This commit is contained in:
@@ -290,8 +290,10 @@ export class Code {
|
||||
|
||||
private async getActiveWindowId(): Promise<number> {
|
||||
if (typeof this._activeWindowId !== 'number') {
|
||||
this.logger.log('getActiveWindowId(): begin');
|
||||
const windows = await this.driver.getWindowIds();
|
||||
this._activeWindowId = windows[0];
|
||||
this.logger.log(`getActiveWindowId(): end (windowId=${this._activeWindowId})`);
|
||||
}
|
||||
|
||||
return this._activeWindowId;
|
||||
|
||||
Reference in New Issue
Block a user