Skip to content

Commit 5b822b0

Browse files
committed
Refactor API tool labels in the settings menu for improved clarity
1 parent 1bebcbd commit 5b822b0

2 files changed

Lines changed: 17 additions & 16 deletions

File tree

packages/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat (CWC)",
44
"description": "Initialize your favorite chatbot, then apply the response with a single click",
5-
"version": "1.132.0",
5+
"version": "1.133.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "npm run compile",

packages/vscode/src/view/backend/message-handlers/handle-open-settings/handle-open-settings.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,38 @@ import { setup_api_tool } from './setup-api-tool'
77
export const handle_open_settings = async (
88
provider: ViewProvider
99
): Promise<void> => {
10-
let showMenu = true
11-
while (showMenu) {
10+
let show_menu = true
11+
while (show_menu) {
1212
const selected = await vscode.window.showQuickPick(
1313
[
1414
{
1515
label: 'Configure API Providers',
16-
detail:
17-
'OpenAI-compatible API endpoints to use by API tools. API keys never leave your device.'
16+
description:
17+
'Add OpenAI-compatible API endpoints to use by API tools',
18+
detail: 'API keys are stored encrypted and never leave your device.'
1819
},
1920
{
2021
label: 'API tools',
2122
kind: vscode.QuickPickItemKind.Separator
2223
},
2324
{
24-
label: '$(tools) Code Completions',
25+
label: 'API tool: Code Completions',
2526
description:
2627
'Get code at cursor from state-of-the-art reasoning models'
2728
},
2829
{
29-
label: '$(tools) Edit Context',
30+
label: 'API tool: Edit Context',
3031
description:
31-
'Create and modify files in context based on natural language instructions'
32+
'Create and modify files based on natural language instructions'
3233
},
3334
{
34-
label: '$(tools) Intelligent Update',
35+
label: 'API tool: Intelligent Update',
3536
description: 'Handle "truncated" edit format and fix malformed diffs'
3637
},
3738
{
38-
label: '$(tools) Commit Messages',
39+
label: 'API tool: Commit Messages',
3940
description:
40-
'Generate meaningful commit messages precisely adhering to your style'
41+
'Generate meaningful commit messages adhering to your style'
4142
}
4243
],
4344
{
@@ -47,33 +48,33 @@ export const handle_open_settings = async (
4748
)
4849

4950
if (!selected) {
50-
showMenu = false
51+
show_menu = false
5152
continue
5253
}
5354

5455
switch (selected.label) {
5556
case 'Configure API Providers':
5657
await configure_api_providers(provider)
5758
break
58-
case '$(tools) Code Completions':
59+
case 'API tool: Code Completions':
5960
await setup_api_tool_multi_config({
6061
provider,
6162
tool: 'code-completions'
6263
})
6364
break
64-
case '$(tools) Edit Context':
65+
case 'API tool: Edit Context':
6566
await setup_api_tool_multi_config({
6667
provider,
6768
tool: 'edit-context'
6869
})
6970
break
70-
case '$(tools) Intelligent Update':
71+
case 'API tool: Intelligent Update':
7172
await setup_api_tool_multi_config({
7273
provider,
7374
tool: 'intelligent-update'
7475
})
7576
break
76-
case 'Commit Messages':
77+
case 'API tool: Commit Messages':
7778
await setup_api_tool({
7879
provider,
7980
tool: 'commit-messages'

0 commit comments

Comments
 (0)