microsoft / microsoft/vscode-java-dependency
Remove "New Java File" submenu, etc. from Explorer context menu
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 199
- Forks
- 105
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 27
Description
This extension contributes a submenu "New Java File" and other commands like "New Java Package, etc." to the explorer context menu. I don't think this is consistent with the VS Code UI style: you won't see "New Typescript File" when editing a typescript project, for example.
What's more, these menus clutter the context menu even in workspaces that are not Java-related at all.
- For creating new FIles, there is the
file/newFilemenu (which is already contributed to) - Creating a new package is just creating folders and there is already support for that (you can just type in
foo/barin order to create a hierarchy - Creating a Java project is not context dependent and therefore should not be in a context menu: VS Code uses the command palette for this.
- The "Create Java Project" command is contributed to the
file/newFilemenu, which again, IMO, goes against VS Code custom.
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 contributions for the Explorer context menu and the file/newFile menu, then identify the entries for New Java File, New Java Package, Create Java Project, and related commands. Remove the context-dependent menu contributions while preserving the command-palette access, and verify that the unwanted entries no longer appear in the relevant VS Code menus.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- developer-experience, tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100