You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e581b07
Browse filesBrowse the repository at this point in the historyBrowse files
Add java.import.mode setting for on-demand project import
Adds the `java.import.mode` setting with "full" (default) and "ondemand"
values.
In on-demand mode, projects are imported lazily when a Java file is
opened
instead of importing everything at startup.
The import mode is also passed as a JVM arg (-Djdt.ls.importMode) so
JDT-LS
can read it early in plugin startup, before LSP initializationOptions
are
available. This allows skipping waitForProjectRegistryRefreshJob in
on-demand
mode to avoid refreshing stale projects from a previous crashed session.
Signed-off-by: azerr <azerr@redhat.com>
Copy file name to clipboardExpand all lines: package.json
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -503,6 +503,21 @@
503
503
"title": "Project Import/Update",
504
504
"order": 20,
505
505
"properties": {
506
+
"java.import.mode": {
507
+
"type": "string",
508
+
"enum": [
509
+
"full",
510
+
"ondemand"
511
+
],
512
+
"enumDescriptions": [
513
+
"All projects are imported at startup.",
514
+
"Projects are imported lazily when a file is opened."
515
+
],
516
+
"default": "full",
517
+
"markdownDescription": "Controls how projects are imported into the workspace.\n- `full`: all projects are discovered and imported at startup (default). Safe and well-tested, but slow for large workspaces.\n- `ondemand`: projects are imported lazily when the user first opens a file belonging to that module. This drastically reduces startup time and memory usage for large multi-module workspaces (e.g. Quarkus with 1300+ modules).",
0 commit comments