How to determine whether Inlay is clicked

Answered

I am developing a plug-in similar to Copilot. When the user edits the code in the Editor, I use the manual trigger Action. After the user presses the shortcut key, I rewrite the paint method in the EditorCustomElementRender and add a small tip graphic Inlay. If the user clicks anywhere in the Editor with the mouse at this time, then I will close Inlay. Clicking on Inlay does not require closing Inlay. I can't tell whether the user clicked on the Inlay or elsewhere in the Editor. What listener should I use to achieve this function.

0
1 comment

I solved this problem by listening for changes in offset 👍

0

Please sign in to leave a comment.