redhat-developer / redhat-developer/vscode-java
vscode-java/jdt.ls doesn't pick up settings changes if language server isn't running
Open
@testforstephen is already working on this.
Since Oct 28, 2020.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
This issue is a spinoff of #1672 which contains some more background information.
I encountered the following problem:
If you:
- start vscode without starting the Java language server (e.g. folder without a pom.xml but with subfolders containing Java projects)
- directly edit the java.* settings (e.g. java.home or java.configuration.runtimes) in settings.json
- save the settings
- open a Java file afterwards
the language server will start with the old settings and does not prompt you to clean the workspace. Your workspace will be out of sync with the settings and you'll need to manually clean the workspace.
Environment
- Operating System: MacOS 10.15
- JDK version: 11/15
- Visual Studio Code version: 1.50.1
- Java extension version: 0.69.0
Steps To Reproduce
see above in description
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.