fix lint errors
This commit is contained in:
parent
83ceb42acf
commit
7dabd65d9f
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import { window } from 'vscode';
|
|||
|
||||
export const promiseWithTimeout = <T>(timeoutMs: number, promise: () => Promise<T>, failureMessage?: string): Promise<T> => {
|
||||
let timeoutHandle: NodeJS.Timeout;
|
||||
const timeoutPromise = new Promise<never>((resolve, reject) => {
|
||||
const timeoutPromise = new Promise<never>(() => {
|
||||
timeoutHandle = setTimeout(() => window.showErrorMessage(failureMessage ?? 'Request timed out'), timeoutMs);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue