mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
smoke: fix quick open focus issue
This commit is contained in:
parent
9cc82e7809
commit
ddda90314e
|
@ -25,6 +25,9 @@ export class QuickOpen {
|
|||
public async openCommandPallette(): Promise<void> {
|
||||
await this.spectron.command('workbench.action.showCommands');
|
||||
await this.waitForQuickOpenOpened();
|
||||
|
||||
// we gotta wait 50 milliseconds due to https://github.com/Microsoft/vscode/blob/master/src/vs/platform/list/browser/listService.ts#L59
|
||||
await new Promise(c => setTimeout(c, 50));
|
||||
}
|
||||
|
||||
public async closeQuickOpen(): Promise<void> {
|
||||
|
|
Loading…
Reference in a new issue