-
Notifications
You must be signed in to change notification settings - Fork 6
Use lsp4ij #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Use lsp4ij #60
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
b29789d
WIP
ericdallo 38c9d72
Fix status bar
ericdallo 40f4fca
Fix markdown-clj
ericdallo 5e1d2ac
Fix actions register
ericdallo 345d874
Remove unused code
ericdallo cc2bbd9
refactor
ericdallo e255bbb
WIP: install server
ericdallo da34cd2
Add download server
ericdallo 56ae594
Fix uri for jar files
ericdallo 12cadc8
Improve download server
ericdallo 1eb5149
Merge branch 'master' into lsp4ij
ericdallo fb7cd94
fix start server
ericdallo 0c76894
Fix progress feature
ericdallo 757eae1
Fix command execution for refactors
ericdallo 9cd70ea
docs update
ericdallo abba58c
docs
ericdallo d6d9263
improve semantic tokens
ericdallo 8df89df
refactor
ericdallo 9e73dc1
Fix memoize
ericdallo 00c1ba1
Fix reflection
ericdallo caa08e4
workaround project find
ericdallo 349021a
Support custom serverInfo request
ericdallo e3c6b0d
Fix server info
ericdallo b64a2cd
clojure/DependencyContents
ericdallo 6538857
Fix settings state
ericdallo f284c45
Fix settings
ericdallo c88dd52
Merge branch 'master' into lsp4ij
ericdallo c8bf771
Merge branch 'master' into lsp4ij
ericdallo f65a8da
Merge branch 'master' into lsp4ij
ericdallo 2db388d
Comment clojure dependencyContents for now
ericdallo 08a8206
Fix code lens references command
ericdallo a1e49a7
Update lsp4ij
ericdallo e1f85ae
docs
ericdallo 32d8842
docs
ericdallo 01a5958
error catch for commands
ericdallo 4424096
docs paredit
ericdallo 23606c8
docs
ericdallo b89065d
Add call hierarchy support
ericdallo 79c0312
docs: add document symbols
ericdallo edfb175
Add codeblock support
ericdallo 1e397ee
Fix startup activity
ericdallo f280259
refactor
ericdallo 3acd8dd
Fix server keepAlive + status bar update
ericdallo 047f989
Changelog
ericdallo 83b4c01
README
ericdallo 2fe2224
Update lsp4ij min-version
ericdallo 45e3b3c
changelog
ericdallo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
WIP: install server
- Loading branch information
commit e255bbbdca772535d87fa69bada2e8ca8c35de12
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
src/main/clojure/com/github/clojure_lsp/intellij/server.clj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
(ns com.github.clojure-lsp.intellij.server | ||
(:require | ||
[com.github.clojure-lsp.intellij.db :as db]) | ||
(:import | ||
[com.intellij.openapi.project Project] | ||
[com.redhat.devtools.lsp4ij LanguageServerItem LanguageServerManager])) | ||
[com.redhat.devtools.lsp4ij LanguageServerManager])) | ||
|
||
(set! *warn-on-reflection* true) | ||
|
||
(defn start-server! [^Project project] | ||
(when-let [item ^LanguageServerItem @(db/get-in project [:server])] | ||
(when-let [server ^LanguageServerManager (.getServer item)] | ||
(.start server "clojure-lsp")))) | ||
(.start (LanguageServerManager/getInstance project) "clojure-lsp")) | ||
|
||
(defn shutdown! [^Project project] | ||
(when-let [item ^LanguageServerItem @(db/get-in project [:server])] | ||
(when-let [server ^LanguageServerManager (.getServer item)] | ||
(.stop server "clojure-lsp")))) | ||
(.stop (LanguageServerManager/getInstance project) "clojure-lsp")) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.