diff --git a/src/utils/promiseWithTimeout.ts b/src/utils/promiseWithTimeout.ts index 610c76e..794a39f 100644 --- a/src/utils/promiseWithTimeout.ts +++ b/src/utils/promiseWithTimeout.ts @@ -2,7 +2,7 @@ import { window } from 'vscode'; export const promiseWithTimeout = (timeoutMs: number, promise: () => Promise, failureMessage?: string): Promise => { let timeoutHandle: NodeJS.Timeout; - const timeoutPromise = new Promise((resolve, reject) => { + const timeoutPromise = new Promise(() => { timeoutHandle = setTimeout(() => window.showErrorMessage(failureMessage ?? 'Request timed out'), timeoutMs); });