File tree Expand file tree Collapse file tree
packages/vscode/src/commands/open-settings-command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,13 +8,19 @@ const LABEL_CODE_COMPLETIONS = '$(tools) Code Completions'
88const LABEL_EDIT_CONTEXT = '$(tools) Edit Context'
99const LABEL_INTELLIGENT_UPDATE = '$(tools) Intelligent Update'
1010const LABEL_COMMIT_MESSAGES = '$(tools) Commit Messages'
11+ const LABEL_EDIT_SETTINGS = '$(settings) Open Settings'
1112
1213export 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
You can’t perform that action at this time.
0 commit comments