redhat-developer / redhat-developer/vscode-java
support relative paths when configuring jdk
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
my project's jdk is located in a directory relative to the project root, but specifying a relative path does not seem to be supported:
{
"java.jdt.ls.java.home": "./jdk"
// also doesn't work:
// "java.jdt.ls.java.home": "${workspaceFolder}/jdk"
}
it would be nice if i could do this because it would allow me to commit this in my workspace settings.json so that others working on my project don't have to configure the path to their jdk manually, since it's located in the same spot for everybody
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 locating the extension's handling of the java.jdt.ls.java.home setting and how workspace paths are resolved. Check the behavior of both ./jdk and ${workspaceFolder}/jdk from a workspace settings.json, then verify that a project-relative JDK path works consistently for other contributors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100