File tree 2 files changed +5
-3
lines changed
src/main/clojure/com/github/clojure_lsp/intellij/extension
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Bump clj4intellij to 0.6.3.
6
6
- Improve server installation fixing concurrency bugs + using lsp4ij install API.
7
+ - Fix code lens references not working when more than a project is opened. #67
7
8
8
9
## 3.0.0
9
10
Original file line number Diff line number Diff line change 95
95
(.registerAction manager id action)
96
96
action)))
97
97
98
- (defn ^:private code-lens-references-performed [^Project project ^LSPCommand command ^AnActionEvent event]
99
- (let [uri (.getAsString ^JsonPrimitive (.getArgumentAt command 0 ))
98
+ (defn ^:private code-lens-references-performed [^LSPCommand command ^AnActionEvent event]
99
+ (let [project (.getProject event)
100
+ uri (.getAsString ^JsonPrimitive (.getArgumentAt command 0 ))
100
101
line (dec (.getAsInt ^JsonPrimitive (.getArgumentAt command 1 )))
101
102
character (dec (.getAsInt ^JsonPrimitive (.getArgumentAt command 2 )))
102
103
references (lsp-client/references uri line character project)
118
119
:use-shortcut-of use-shortcut-of
119
120
:on-performed (partial on-action-performed name text project)))
120
121
(register-command! :id " code-lens-references"
121
- :on-performed ( partial code-lens-references-performed project) )
122
+ :on-performed #' code-lens-references-performed)
122
123
(action/register-group! :id " ClojureLSP.Refactors"
123
124
:popup true
124
125
:text " Clojure refactors"
You can’t perform that action at this time.
0 commit comments