File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/clojure/com/github/clojure_lsp/intellij/extension Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 76
76
{:name " raise-sexp" :text " Raise sexpr" :description " Raise current sexpr (Paredit)" :keyboard-shortcut {:first " alt R" :replace-all true }}
77
77
{:name " kill-sexp" :text " Kill sexpr" :description " Kill current sexpr (Paredit)" :keyboard-shortcut {:first " alt K" :replace-all true }}])
78
78
79
- (defn ^:private on-action-performed [command-name text project ^AnActionEvent event]
79
+ (defn ^:private on-action-performed [command-name text ^AnActionEvent event]
80
80
(when-let [editor ^Editor (.getData event CommonDataKeys/EDITOR_EVEN_IF_INACTIVE)]
81
- (let [[line character] (util/editor->cursor-position editor)]
81
+ (let [project (.getProejct event)
82
+ [line character] (util/editor->cursor-position editor)]
82
83
(tasks/run-background-task!
83
84
project
84
85
" LSP: refactoring"
109
110
(.getDataContext event)
110
111
(.getInputEvent event))))
111
112
112
- (defn -runActivity [_this ^Project project ]
113
+ (defn -runActivity [_this ^Project _project ]
113
114
(doseq [{:keys [name text description use-shortcut-of keyboard-shortcut]} clojure-lsp-commands]
114
115
(action/register-action! :id (str " ClojureLSP." (csk/->PascalCase name))
115
116
:title text
116
117
:description description
117
118
:icon Icons/CLOJURE
118
119
:keyboard-shortcut keyboard-shortcut
119
120
:use-shortcut-of use-shortcut-of
120
- :on-performed (partial on-action-performed name text project )))
121
+ :on-performed (partial on-action-performed name text)))
121
122
(register-command! :id " code-lens-references"
122
123
:on-performed #'code-lens-references-performed)
123
124
(action/register-group! :id " ClojureLSP.Refactors"
You can’t perform that action at this time.
0 commit comments