File tree 2 files changed +9
-7
lines changed
src/main/clojure/com/github/clojure_lsp/intellij/extension
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 4
4
[com.github.ericdallo.clj4intellij.extension :refer [def-extension ]])
5
5
(:import
6
6
[com.intellij.openapi.project Project]
7
- [com.intellij.openapi.startup StartupActivity]))
7
+ [com.intellij.openapi.startup ProjectActivity]
8
+ [kotlinx.coroutines CoroutineScope]))
8
9
9
10
(set! *warn-on-reflection* true )
10
11
11
12
(def-extension InitDBStartup []
12
- StartupActivity
13
- (runActivity [_this ^Project project]
13
+ ProjectActivity
14
+ (execute [_this ^Project project ^CoroutineScope _ ]
14
15
(db/init-db-for-project project)))
Original file line number Diff line number Diff line change 19
19
CommonDataKeys]
20
20
[com.intellij.openapi.editor Editor]
21
21
[com.intellij.openapi.project Project]
22
- [com.intellij.openapi.startup StartupActivity ]
22
+ [com.intellij.openapi.startup ProjectActivity ]
23
23
[com.redhat.devtools.lsp4ij LanguageServerManager]
24
24
[com.redhat.devtools.lsp4ij.commands LSPCommand LSPCommandAction]
25
- [com.redhat.devtools.lsp4ij.usages LSPUsageType LSPUsagesManager LocationData]))
25
+ [com.redhat.devtools.lsp4ij.usages LSPUsageType LSPUsagesManager LocationData]
26
+ [kotlinx.coroutines CoroutineScope]))
26
27
27
28
(set! *warn-on-reflection* true )
28
29
108
109
(.getInputEvent event))))
109
110
110
111
(def-extension RegisterActionsStartup []
111
- StartupActivity
112
- (runActivity [_this ^Project _project]
112
+ ProjectActivity
113
+ (execute [_this ^Project _project ^CoroutineScope _ ]
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
You can’t perform that action at this time.
0 commit comments