From 6dfa356c0d401cafb65217f1a3c609609dbfe050 Mon Sep 17 00:00:00 2001 From: Ilya Golovin Date: Mon, 29 Jan 2024 17:03:38 +0300 Subject: [PATCH] fix: replace throw with console.error --- typescript/src/decorateProxy.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/typescript/src/decorateProxy.ts b/typescript/src/decorateProxy.ts index f2d7900..5e9a034 100644 --- a/typescript/src/decorateProxy.ts +++ b/typescript/src/decorateProxy.ts @@ -92,9 +92,7 @@ export const decorateLanguageService = ( prevCompletionsAdditionalData = result.prevCompletionsAdditionalData return result.completions } catch (err) { - setTimeout(() => { - throw err as Error - }) + console.error(err) return { entries: [ {