Skip to content

Commit

Permalink
config: disable Java analysis
Browse files Browse the repository at this point in the history
Java analysis consumes significant memory resources, even when only the
Java SDK is analysed.

Java analysis populates autocomplete with a huge number of entries from
the Java language API, adding complexity when not using Java interop.

Set `:java nil` to disable LSP analysis of Java SDK and any other Java
libraries on the class path
  • Loading branch information
practicalli-johnny committed Sep 29, 2023
1 parent 59b1bee commit 1d5a6d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
;; :home-path nil ;; jdk-source-uri takes precedence
;; :download-jdk-source? false
;; :decompile-jar-as-project? true}
:java
{:jdk-source-uri "file:///usr/lib/jvm/openjdk-17/lib/src.zip"}
;; :java
;; {:jdk-source-uri "file:///usr/lib/jvm/openjdk-17/lib/src.zip"}
:java nil

;; End of Project analysis
;; ---------------------------------------------------------
Expand Down

0 comments on commit 1d5a6d1

Please sign in to comment.