Skip to content

Add option to disable right-click/context-menu elements #4141

Closed as not planned

Description

@rubin55

Currently, the extension does not provide an option to disable the context menu items (on files and folders, maven-submenu only shows up for files, the others on folders):

  • Maven (submenu)
  • New Java File
  • New Java Package...
  • New Java Project...

Most other extensions provide options to disable them, because if you work with a lot of extensions, the context menu becomes unwieldy.

Please provide a configuration option to disable these elements in the right-click/context-menu.

Activity

  1. tsmaeder commented on Sep 11, 2025

    @tsmaeder
    Contributor

    None of the menu items you mention are contributed by this extension: the Maven submenu is contributed by vscode-maven and the "New..." actions are contributed by vscode-java-dependency, both published by Microsoft. Also, I would argue the none of these actions should be in the context menu, as we are unlikely to provide enough context that they only appear on items where they make sense. Imagine if every language extension started contributing such elements to the explorer context menu.
    The VS Code way to create a new file is to create a java file and fill the content with a snippet, IMO. I would suggest you close this one and open issues with the
    Anyway, seeing that the actions are not contributed by this extensions, I suggest you close this one.

  2. fbricon commented on Oct 24, 2025

    @fbricon
    Collaborator

    Closing as out-of-scope of vscode-java

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