Skip to content

Commit 8adc17a

Browse files
authored
fix(extension): Fix grouping of Angular commands into submenu (#2136)
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
1 parent 4232ef0 commit 8adc17a

File tree

3 files changed

+4603
-7049
lines changed

3 files changed

+4603
-7049
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=974837034
5-
pnpm-lock.yaml=1106949221
5+
pnpm-lock.yaml=-1035851666
66
yarn.lock=1549120094
7-
package.json=-2051027682
7+
package.json=250942755
88
pnpm-workspace.yaml=1711114604

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
"category": "Angular"
5454
}
5555
],
56+
"submenus": [
57+
{
58+
"id": "angular.submenu",
59+
"label": "Angular"
60+
}
61+
],
5662
"menus": {
5763
"commandPalette": [
5864
{
@@ -69,20 +75,26 @@
6975
}
7076
],
7177
"editor/context": [
78+
{
79+
"submenu": "angular.submenu",
80+
"group": "angular"
81+
}
82+
],
83+
"angular.submenu": [
7284
{
7385
"when": "(resourceLangId == html || resourceLangId == typescript) && !virtualWorkspace",
7486
"command": "angular.getTemplateTcb",
75-
"group": "angular"
87+
"group": "debug"
7688
},
7789
{
7890
"when": "resourceLangId == html && !virtualWorkspace",
7991
"command": "angular.goToComponentWithTemplateFile",
80-
"group": "angular"
92+
"group": "navigation"
8193
},
8294
{
8395
"when": "resourceLangId == typescript && !virtualWorkspace",
8496
"command": "angular.goToTemplateForComponent",
85-
"group": "angular"
97+
"group": "navigation"
8698
}
8799
]
88100
},

0 commit comments

Comments
 (0)