Skip to content

Commit

Permalink
Queue problematic view dispatch call
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Nov 25, 2024
1 parent 46c2580 commit c5b9427
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/editor/codemirror/language-server/signatureHelp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
});
});
}
};
Expand Down

0 comments on commit c5b9427

Please sign in to comment.