Skip to content

Commit

Permalink
Fix settings page exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdallo committed Feb 18, 2025
1 parent 2f27580 commit e21b812
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

- Fix Settings page exception when more than a project was opened and closed.

## 3.0.1

- Bump clj4intellij to 0.6.3.
Expand Down
8 changes: 6 additions & 2 deletions src/main/clojure/com/github/clojure_lsp/intellij/db.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
(update projects (.getBasePath project) #(merge (assoc empty-project :project project) %))))))

(defn all-projects []
(remove nil?
(mapv :project (vals (:projects @db*)))))
(->> @db*
:projects
vals
(mapv :project)
(remove nil?)
(remove #(.isDisposed %))))

0 comments on commit e21b812

Please sign in to comment.