Skip to content

Commit 8101f61

Browse files
committed
Provide an "Open Settings" option in the quick pick menu
1 parent 9633138 commit 8101f61

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/vscode/src/commands/open-settings-command/open-settings-command.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ const LABEL_CODE_COMPLETIONS = '$(tools) Code Completions'
88
const LABEL_EDIT_CONTEXT = '$(tools) Edit Context'
99
const LABEL_INTELLIGENT_UPDATE = '$(tools) Intelligent Update'
1010
const LABEL_COMMIT_MESSAGES = '$(tools) Commit Messages'
11+
const LABEL_EDIT_SETTINGS = '$(settings) Open Settings'
1112

1213
export const open_settings_command = (context: vscode.ExtensionContext) => {
1314
return vscode.commands.registerCommand('codeWebChat.settings', async () => {
1415
let show_menu = true
1516
while (show_menu) {
1617
const selected = await vscode.window.showQuickPick(
1718
[
19+
{
20+
label: LABEL_EDIT_SETTINGS,
21+
detail:
22+
'Modify "edit format" instructions attached to your prompts, edit presets in JSON and more.'
23+
},
1824
{
1925
label: LABEL_PROVIDERS,
2026
detail: 'API keys are stored encrypted and never leave your device.'
@@ -54,6 +60,13 @@ export const open_settings_command = (context: vscode.ExtensionContext) => {
5460
}
5561

5662
switch (selected.label) {
63+
case LABEL_EDIT_SETTINGS:
64+
await vscode.commands.executeCommand(
65+
'workbench.action.openSettings',
66+
'@ext:robertpiosik.gemini-coder'
67+
)
68+
show_menu = false
69+
break
5770
case LABEL_PROVIDERS:
5871
await api_providers(context)
5972
break

0 commit comments

Comments
 (0)