Skip to content

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

Open

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.

Activity

  1. github-actions commented on Sep 23, 2025

    @github-actions

    Hi Thomas Mäder (@tsmaeder), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    • This is a feature‐request/enhancement to allow hiding Java-specific context-menu items when not editing Java files.

    High-confidence reference:

    Other references with low confidence

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions