vscode: When 2 extensions contribute the same submenus it is duplicated instead of merged

  • VSCode Version: 1.50.1
  • OS Version: macos 10.15.7

Steps to Reproduce:

  1. Create 2 extensions that contribute the same submenu with different sub menu items. See extension 1

https://github.com/devinea/code_submenus/blob/main/code1/package.json#L22-L45

and extension 2

https://github.com/devinea/code_submenus/blob/main/code2/package.json#L24-L46

  1. When both extensions are installed the Tools menu appears 2 times and the content from 2 the extensions is shown in both. Screenshot 2020-11-01 at 21 25 56 Screenshot 2020-11-01 at 21 25 50

I would like for multiple of my extensions (part of a suite) to contribute to the same Tools menu and the sub menu items from each extension shown within. If I remove the following from the config of 1 of the 2 extensions the desired UX is achieved when both are installed.

      "explorer/context": [
        {
          "label": "Tools",
          "submenu": "tools",
          "group": "1_modification@1"
        }
      ],
Screenshot 2020-11-01 at 21 56 33

But when launching the extension with explorer/context removed without the other installed the menu item does not appear. This is particularly annoying when developing and launching for debugging.

Does this issue occur when all extensions are disabled?: No

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Yeah I forgot that we’re currently locking down Insiders for the release… Thanks @gjsjohnmurray!

And thanks again @devinea, love the passion!

@devinea Insiders is currently tracking the upcoming 1.51 release, so I think you’ll need to wait until endgame has completed and Insiders About dialog starts reporting as 1.52. Maybe as soon as tomorrow.