mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Move wait for workbench restoration to Application (#197053)
#195850: Move wait for workbench restoration to Application#checkWindowReady
This commit is contained in:
parent
0279c52a02
commit
bee0ea18bd
|
@ -120,6 +120,9 @@ export class Application {
|
|||
await measureAndLog(() => code.didFinishLoad(), 'Application#checkWindowReady: wait for navigation to be committed', this.logger);
|
||||
await measureAndLog(() => code.waitForElement('.monaco-workbench'), 'Application#checkWindowReady: wait for .monaco-workbench element', this.logger);
|
||||
|
||||
// Wait for workbench to be restored
|
||||
await this.code.whenWorkbenchRestored();
|
||||
|
||||
// Remote but not web: wait for a remote connection state change
|
||||
if (this.remote) {
|
||||
await measureAndLog(() => code.waitForTextContent('.monaco-workbench .statusbar-item[id="status.host"]', undefined, statusHostLabel => {
|
||||
|
|
|
@ -198,9 +198,6 @@ export class QuickAccess {
|
|||
this.code.logger.log(`QuickAccess: No matching commands, will retry...`);
|
||||
await this.quickInput.closeQuickInput();
|
||||
|
||||
// Wait for workbench to be restored
|
||||
await this.code.whenWorkbenchRestored();
|
||||
|
||||
let retries = 0;
|
||||
while (++retries < 5) {
|
||||
hasCommandFound = await openCommandPalletteAndTypeCommand();
|
||||
|
@ -218,7 +215,6 @@ export class QuickAccess {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// wait and click on best choice
|
||||
await this.quickInput.selectQuickInputElement(0, keepOpen);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue