From c5b94279605524bdadd41a208768f1dc369ecacc Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 25 Nov 2024 17:19:13 +0000 Subject: [PATCH] Queue problematic view dispatch call --- src/editor/codemirror/language-server/signatureHelp.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/editor/codemirror/language-server/signatureHelp.ts b/src/editor/codemirror/language-server/signatureHelp.ts index 9903cdf79..de7fed6b6 100644 --- a/src/editor/codemirror/language-server/signatureHelp.ts +++ b/src/editor/codemirror/language-server/signatureHelp.ts @@ -107,8 +107,10 @@ const triggerSignatureHelpRequest = async ( if (!isErrorDueToDispose(e)) { logException(state, e, "signature-help"); } - view.dispatch({ - effects: [setSignatureHelpResult.of(null)], + queueMicrotask(() => { + view.dispatch({ + effects: [setSignatureHelpResult.of(null)], + }); }); } };