clojure-lsp-intellij icon indicating copy to clipboard operation
clojure-lsp-intellij copied to clipboard

Use UI dialog of particular type when more than 2 options

Open velios opened this issue 1 year ago • 3 comments
trafficstars

First of all, thanks for the great plugin and the time you spent developing it. Sorry if some of my text is worded impolitely. I am not a native speaker and cannot formulate my thoughts as I would like.

When i enable Clojure LSP "choose" popup window changes to this type image If i switch off Clojure LSP and stay with Cursive only popup in same place looks like this Screenshot 2024-03-17 at 22 39 28 But i don't think it's something Cursive special, looks like different types of embedded IDEA popup window.

And for recently added feature #31 it's third type of dialog in same in my taste situation Screenshot 2024-03-17 at 22 40 20

The second type of dialogue is quite convenient to use because it has many options for customization to suit every taste. If it's not too difficult, you can turn it on as the default option in Clojure LSP.

velios avatar Mar 17 '24 21:03 velios

I know about that difference and the problem is that we are kind of making magic since IntelliJ CE doesn't support LSP in a easy way, so for now this is the best popup I could make it work, but indeed the second popup is the ideal, if you find a way to improve this LMK, I can check it again in the future

ericdallo avatar Mar 23 '24 12:03 ericdallo

I think rich dialog is named com.intellij.ui.components.JBScrollPane image

Link to instructions for enabling this tool

velios avatar Apr 22 '24 09:04 velios

Thanks @velios, I use this tool but JBScrollPane is just a scroll panel, also the problem here is not building the UI, I managed to build a similar UI, but the problem is how to integrate with the goToDeclaration API

ericdallo avatar Apr 22 '24 14:04 ericdallo