increase default timeout for event waiting, fixes https://github.com/microsoft/vscode/issues/116704

This commit is contained in:
Johannes Rieken 2021-02-15 17:17:04 +01:00
parent 2e53ffced9
commit d9c653c8b6

View file

@ -122,7 +122,7 @@ export function assertNoRpcFromEntry(entry: [obj: any, name: string]) {
assert.strictEqual(proxyPaths.length, 0, proxyPaths.join('\n')); // happens...
}
export async function asPromise<T>(event: vscode.Event<T>, timeout = 1000): Promise<T> {
export async function asPromise<T>(event: vscode.Event<T>, timeout = 5000): Promise<T> {
return new Promise<T>((resolve, reject) => {
const handle = setTimeout(() => {