Closed bpringe closed 2 years ago
I noticed that if I put the cursor after the t in deftest the command always fails, but if I put it before the t, the command always succeeds.
Perhaps if instead of sending the active selection, we send the selection of Calva's current form to this command, then it would better meet the expectations of Calva users?
https://github.com/BetterThanTomorrow/calva/blob/dev/src/lsp/main.ts#L304
I think we should fix on clojure-lsp to be a little bit smart like other refactorings to parse current cursor and know if it's in a macro and get it's symbol properly
This was fixed in clojure-lsp and should be released soon. I'm going to close this so we don't have to remember to close it later when the fix is released.
Sometimes a message is shown that no macro exists at the cursor.
Given a file with the following content, and given that the command is run on the second
deftest
, the logs below are from an unsuccessful and successful run:Unsuccessful:
Successful:
I noticed that if I put the cursor after the
t
indeftest
the command always fails, but if I put it before thet
, the command always succeeds.@ericdallo Any idea what's going on here?