redhat-developer / redhat-developer/vscode-java
Update classpath based on java.project.referencedLibraries when modifications in pointed folders
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
Steps To Reproduce
- have a folder defined in java.project.referencedLibraries outside of workspace. For instance:
"java.project.referencedLibraries": [
"/home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0/dependencies/*.jar"
]
- list of jars is modified inside
/home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0/dependencies/
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
the classpath is not refreshed.
Expected Result
Either:
- automatically detect it and refresh
- provide a command to call a refresh
Additional Informations
any light workaround for it? (or already existing API?)
heavy workarounds:
- remove the entry, then readd in the settings
- call "Clean java language Server workspace"
needed for VS Code Camel K https://issues.redhat.com/browse/FUSETOOLS2-826
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.
Research direction
Start by tracing how the java.project.referencedLibraries setting is processed and how the extension reacts to changes in referenced folders outside the workspace. Compare the existing “Clean java language Server workspace” workaround with the requested automatic refresh or command, then verify that adding or removing matching JARs refreshes the classpath.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100