Skip to content

Commit 05b66ed

Browse files
committed
feat: update command titles and add context conditions for improved usability
1 parent d743875 commit 05b66ed

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"command": "code-collector.collectAll",
32-
"title": "Code Collect All"
32+
"title": "Code Collect (All)"
3333
},
3434
{
3535
"command": "code-collector.showOutput",
@@ -40,29 +40,25 @@
4040
"explorer/context": [
4141
{
4242
"command": "code-collector.gatherImports",
43+
"when": "resourcePath && (explorerResourceIsFolder || resourceExtname)",
4344
"group": "2_workspace@1"
4445
},
4546
{
4647
"command": "code-collector.gatherDirect",
48+
"when": "resourcePath && (explorerResourceIsFolder || resourceExtname)",
4749
"group": "2_workspace@2"
4850
},
4951
{
5052
"command": "code-collector.collectAll",
53+
"when": "resourcePath && explorerResourceIsFolder",
5154
"group": "2_workspace@3"
5255
}
5356
],
5457
"editor/context": [
5558
{
5659
"command": "code-collector.gatherImports",
60+
"when": "editorTextFocus",
5761
"group": "navigation@0"
58-
},
59-
{
60-
"command": "code-collector.gatherDirect",
61-
"group": "navigation@1"
62-
},
63-
{
64-
"command": "code-collector.collectAll",
65-
"group": "navigation@99"
6662
}
6763
]
6864
},

0 commit comments

Comments
 (0)