Skip to content

Add java.import.mode setting for on-demand project import - #4519

Open
angelozerr wants to merge 1 commit into
redhat-developer:mainfrom
angelozerr:ondemand-import
Open

angelozerr wants to merge 1 commit into
redhat-developer:mainfrom
angelozerr:ondemand-import

Conversation

@angelozerr

Copy link
Copy Markdown
Contributor

Add java.import.mode setting for on-demand project import

By default it is:

java.import/mode : "full"

To swithc to ondemand:

java.import/mode : "ondemand"

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>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant