From 918c0a7edfca0368108082d872b271f10082609d Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 25 Jul 2024 17:37:02 -0400 Subject: [PATCH] Fix comment --- src/requestCompletion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requestCompletion.ts b/src/requestCompletion.ts index 3cb57a3..7e50dfd 100644 --- a/src/requestCompletion.ts +++ b/src/requestCompletion.ts @@ -73,7 +73,7 @@ export async function requestCompletion(view: EditorView, lastPos?: number) { }); } catch (error) { console.warn("copilot completion failed", error); - // Javascript wait for 500ms for some reason is necessary here. + // Javascript wait for 300ms for some reason is necessary here. // TODO - FIGURE OUT WHY THIS RESOLVES THE BUG await new Promise((resolve) => setTimeout(resolve, 300));