lsp

borkdude 2024-10-06T18:04:17.459639Z

Although I've worked on this on the clj-kondo side myself too, I'm pretty amazed that this works in LSP, kudos @ericdallo ;) We can probably improve this a lot with the new Class/.instance notation as well

🤩 7
ericdallo 2024-10-07T12:41:04.511379Z

Nice! Yeah, agreed, my princess dream would be to support something like:

(doto (MyClass.)
  (.foo|)) ;; completion there
but I struggle to see how static analysis would help there

👍 1
borkdude 2024-10-07T12:42:01.304319Z

If people are willing to use the 1.12 syntax, this would be possible

(doto (MyClass.)
  (MyClass/.foo| ;; completion here))

ericdallo 2024-10-07T12:43:04.361549Z

interesting, didn't realize that, I wonder how common will be to type again the MyClass especially after years of not doing that

👍 1
borkdude 2024-10-07T12:44:02.459799Z

Maybe not but if people want auto-completion, they can I guess

borkdude 2024-10-07T12:44:10.829879Z

but probably needs a little change in clj-kondo

ericdallo 2024-10-07T12:52:25.316049Z

makes sense