Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make workspace configurable for jdtls. #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nassermohamedit
Copy link
Contributor

@nassermohamedit nassermohamedit 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.

@nassermohamedit
Copy link
Contributor Author

@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
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