microsoft / microsoft/vscode-java-dependency

Remove "New Java File" submenu, etc. from Explorer context menu

Open
#909 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged enhancement
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/bar in 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/newFile menu, which again, IMO, goes against VS Code custom.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.