redhat-developer / redhat-developer/vscode-java
New Java File -> Class/Interface option defaults file name to public class Main {.java
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
New Java File -> Class/Interface option defaults file name to public class Main {.java
[provide a description of the issue]
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
Steps To Reproduce
- Open Explorer
- New Java File -> Class/Interface
- Change the class name
- Save
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Class file name includes the first class line, not just a class name
Expected Result
Expect only file name like Main.java
Additional Informations
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 reproducing the Explorer's New Java File -> Class/Interface flow, including changing the class name before saving. Verify the generated filename and compare it with the expected class name plus the .java extension; done means the filename no longer includes the first class line.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100