Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Dec 28, 2024

Closes #34

This PR affects only Eclipse JDTLS and introduces no breaking changes.
It adds the ability to specify the workspace directory path used by the JDTLS server through the MultilspyConfig class:

class MultilspyConfig:
    ...
    ws_path: Path = None
    temp_workspace: bool = False
    ...

By default, the ws_path property is None, and Eclipse JDTLS creates a new workspace for the current project. If the temp_workspace config property is set to false, Eclipse JDTLS will register the new workspace and associate it with the current project. This association is persisted in a file named ws_table in the Eclipse JDTLS directory.

Upon stopping, the server will clean up the new workspace if temp_workspace is true. If the workspace path was provided by the client, the behavior remains similar, except that the workspace is not removed even if temp_workspace is set to true.

@ghost
Copy link
Author

ghost commented Dec 28, 2024

@microsoft-github-policy-service agree

@LakshyAAAgrawal LakshyAAAgrawal changed the base branch from main to DanCip00/main December 31, 2024 10:35
@LakshyAAAgrawal LakshyAAAgrawal changed the base branch from DanCip00/main to main December 31, 2024 10:36
@ghost ghost closed this Feb 8, 2025
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.

Project workspace setup in eclipse_jdtls
2 participants