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)], + }); }); } };