Skip to content

Commit fc517aa

Browse files
authored
Merge branch 'master' into improve-install-api
2 parents 4251521 + 9fff7e6 commit fc517aa

File tree

6 files changed

+112
-103
lines changed

6 files changed

+112
-103
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
## [Unreleased]
44

5+
- Fix comment form complain about missing paren.
56
- Improve server installation fixing concurrency bugs + using lsp4ij install API.
67

8+
## 3.0.2
9+
10+
- Fix Settings page exception when more than a project was opened and closed.
11+
712
## 3.0.1
813

914
- Bump clj4intellij to 0.6.3.

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pluginGroup = com.github.clojure-lsp
55
pluginName = clojure-lsp
6-
pluginVersion = 3.0.1
6+
pluginVersion = 3.0.2
77

88
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
99
# for insight into build numbers and IntelliJ Platform versions.

src/gen/com/github/clojure_lsp/intellij/language/parser/_ClojureLexer.java

+94-95
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/clojure/com/github/clojure_lsp/intellij/db.clj

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232
(update projects (.getBasePath project) #(merge (assoc empty-project :project project) %))))))
3333

3434
(defn all-projects []
35-
(remove nil?
36-
(mapv :project (vals (:projects @db*)))))
35+
(->> @db*
36+
:projects
37+
vals
38+
(mapv :project)
39+
(remove nil?)
40+
(remove #(.isDisposed ^Project %))))

src/main/clojure/com/github/clojure_lsp/intellij/extension/register_actions_startup.clj

+5-4
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@
7676
{:name "raise-sexp" :text "Raise sexpr" :description "Raise current sexpr (Paredit)" :keyboard-shortcut {:first "alt R" :replace-all true}}
7777
{:name "kill-sexp" :text "Kill sexpr" :description "Kill current sexpr (Paredit)" :keyboard-shortcut {:first "alt K" :replace-all true}}])
7878

79-
(defn ^:private on-action-performed [command-name text project ^AnActionEvent event]
79+
(defn ^:private on-action-performed [command-name text ^AnActionEvent event]
8080
(when-let [editor ^Editor (.getData event CommonDataKeys/EDITOR_EVEN_IF_INACTIVE)]
81-
(let [[line character] (util/editor->cursor-position editor)]
81+
(let [project (.getProject event)
82+
[line character] (util/editor->cursor-position editor)]
8283
(tasks/run-background-task!
8384
project
8485
"LSP: refactoring"
@@ -109,15 +110,15 @@
109110
(.getDataContext event)
110111
(.getInputEvent event))))
111112

112-
(defn -runActivity [_this ^Project project]
113+
(defn -runActivity [_this ^Project _project]
113114
(doseq [{:keys [name text description use-shortcut-of keyboard-shortcut]} clojure-lsp-commands]
114115
(action/register-action! :id (str "ClojureLSP." (csk/->PascalCase name))
115116
:title text
116117
:description description
117118
:icon Icons/CLOJURE
118119
:keyboard-shortcut keyboard-shortcut
119120
: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)))
121122
(register-command! :id "code-lens-references"
122123
:on-performed #'code-lens-references-performed)
123124
(action/register-group! :id "ClojureLSP.Refactors"

src/main/gramar/_ClojureLexer.flex

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import static com.github.clojure_lsp.intellij.ClojureTokens.FORM_COMMENT;
3232

3333
WHITE_SPACE=\s+
3434
LINE_COMMENT=;.*
35-
FORM_COMMENT=#_\S*
35+
FORM_COMMENT=#_
3636
STR_CHAR=[^\\\"]|\\.|\\\"
3737
STRING=\" {STR_CHAR}* \"
3838
// octal numbers: 023, 023N, but not 023M

0 commit comments

Comments
 (0)