Skip to content

Commit

Permalink
fix(extension): Fix grouping of Angular commands into submenu (#2136)
Browse files Browse the repository at this point in the history
This commit moves the Angular commands to a submenu. This was the intent
initially but not enough time was spent to figure out how to do it
correctly.

fixes #2076
  • Loading branch information
atscott authored Feb 6, 2025
1 parent 4232ef0 commit 8adc17a
Show file tree
Hide file tree
Showing 3 changed files with 4,603 additions and 7,049 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
# This file should be checked into version control along with the pnpm-lock.yaml file.
.npmrc=974837034
pnpm-lock.yaml=1106949221
pnpm-lock.yaml=-1035851666
yarn.lock=1549120094
package.json=-2051027682
package.json=250942755
pnpm-workspace.yaml=1711114604
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
"category": "Angular"
}
],
"submenus": [
{
"id": "angular.submenu",
"label": "Angular"
}
],
"menus": {
"commandPalette": [
{
Expand All @@ -69,20 +75,26 @@
}
],
"editor/context": [
{
"submenu": "angular.submenu",
"group": "angular"
}
],
"angular.submenu": [
{
"when": "(resourceLangId == html || resourceLangId == typescript) && !virtualWorkspace",
"command": "angular.getTemplateTcb",
"group": "angular"
"group": "debug"
},
{
"when": "resourceLangId == html && !virtualWorkspace",
"command": "angular.goToComponentWithTemplateFile",
"group": "angular"
"group": "navigation"
},
{
"when": "resourceLangId == typescript && !virtualWorkspace",
"command": "angular.goToTemplateForComponent",
"group": "angular"
"group": "navigation"
}
]
},
Expand Down
Loading

0 comments on commit 8adc17a

Please sign in to comment.