fix lint errors

This commit is contained in:
alexweininger 2021-05-07 18:24:24 -07:00
parent 83ceb42acf
commit 7dabd65d9f

View file

@ -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);
});