Skip to content

Commit c051edc

Browse files
committed
feat(ui): add icons and SCM menu integration
- Add icons to command palette entries: - Note icon for generate commit message - File code icon for preview commit message - Key icon for API key update - Trash icon for API key deletion - Add source control menu integration for generate commit message command
1 parent 5b52766 commit c051edc

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,23 @@
3838
"commands": [
3939
{
4040
"command": "diffCommit.generateCommitMessage",
41-
"title": "DiffCommit: Generate Commit Message"
41+
"title": "DiffCommit: Generate Commit Message",
42+
"icon": "$(note)"
4243
},
4344
{
4445
"command": "diffCommit.previewCommitMessage",
45-
"title": "DiffCommit: Preview Commit Message"
46+
"title": "DiffCommit: Preview Commit Message",
47+
"icon": "$(file-code)"
4648
},
4749
{
4850
"command": "diffCommit.updateAPIKey",
49-
"title": "DiffCommit: Update stored API Key"
51+
"title": "DiffCommit: Update stored API Key",
52+
"icon": "$(key)"
5053
},
5154
{
5255
"command": "diffCommit.deleteAPIKey",
53-
"title": "DiffCommit: Delete stored API Key"
56+
"title": "DiffCommit: Delete stored API Key",
57+
"icon": "$(trash)"
5458
}
5559
],
5660
"configuration": {
@@ -123,7 +127,16 @@
123127
"linux": "ctrl+k ctrl+p",
124128
"when": "!terminalFocus"
125129
}
126-
]
130+
],
131+
"menus": {
132+
"scm/title": [
133+
{
134+
"command": "diffCommit.generateCommitMessage",
135+
"group": "navigation",
136+
"when": "scmProvider == git"
137+
}
138+
]
139+
}
127140
},
128141
"dependencies": {
129142
"@anthropic-ai/sdk": "^0.30.1"

0 commit comments

Comments
 (0)