mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
#191860 - retry if command is not found
This commit is contained in:
@@ -254,6 +254,10 @@ export class Code {
|
||||
return this.driver.getLogs();
|
||||
}
|
||||
|
||||
wait(millis: number): Promise<void> {
|
||||
return new Promise((resolve, reject) => setTimeout(resolve, millis));
|
||||
}
|
||||
|
||||
private async poll<T>(
|
||||
fn: () => Promise<T>,
|
||||
acceptFn: (result: T) => boolean,
|
||||
|
||||
Reference in New Issue
Block a user