We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b833a40 commit 9153f8dCopy full SHA for 9153f8d
src/editor/codemirror/language-server/signatureHelp.ts
@@ -307,5 +307,20 @@ export const signatureHelp = (
307
signatureHelpTooltipField,
308
signatureHelpToolTipBaseTheme,
309
keymap.of(signatureHelpKeymap),
310
+ EditorView.domEventHandlers({
311
+ blur(event, view) {
312
+ // Close signature help as it interacts badly with drag and drop if
313
+ // you drag over the tooltip. Deal with the special case of focus
314
+ // moving to the tooltip itself.
315
+ if (
316
+ !(event.relatedTarget instanceof Element) ||
317
+ !event.relatedTarget.closest(".cm-signature-tooltip")
318
+ ) {
319
+ view.dispatch({
320
+ effects: setSignatureHelpRequestPosition.of(-1),
321
+ });
322
+ }
323
+ },
324
+ }),
325
];
326
};
0 commit comments