Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Jul 25, 2024
1 parent 77c6eae commit 918c0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requestCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 918c0a7

Please sign in to comment.