Skip to content

Commit d7ed054

Browse files
committed
Ensure API tool configuration menus consistently display a back button for improved navigation
1 parent 1e879d5 commit d7ed054

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,29 @@ export const open_settings_command = (context: vscode.ExtensionContext) => {
7676
case LABEL_CODE_COMPLETIONS:
7777
await setup_api_tool_multi_config({
7878
context,
79-
tool: 'code-completions'
79+
tool: 'code-completions',
80+
show_back_button: true
8081
})
8182
break
8283
case LABEL_EDIT_CONTEXT:
8384
await setup_api_tool_multi_config({
8485
context,
85-
tool: 'edit-context'
86+
tool: 'edit-context',
87+
show_back_button: true
8688
})
8789
break
8890
case LABEL_INTELLIGENT_UPDATE:
8991
await setup_api_tool_multi_config({
9092
context,
91-
tool: 'intelligent-update'
93+
tool: 'intelligent-update',
94+
show_back_button: true
9295
})
9396
break
9497
case LABEL_COMMIT_MESSAGES:
9598
await setup_api_tool_multi_config({
9699
context,
97-
tool: 'commit-messages'
100+
tool: 'commit-messages',
101+
show_back_button: true
98102
})
99103
break
100104
}
@@ -115,7 +119,11 @@ export const open_settings_command = (context: vscode.ExtensionContext) => {
115119
const edit_context_config_command = vscode.commands.registerCommand(
116120
'codeWebChat.settings.editContext',
117121
() =>
118-
setup_api_tool_multi_config({ context, tool: 'edit-context', show_back_button: false })
122+
setup_api_tool_multi_config({
123+
context,
124+
tool: 'edit-context',
125+
show_back_button: false
126+
})
119127
)
120128

121129
return [

‎packages/vscode/src/commands/open-settings-command/setup-api-tool-multi-config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export const setup_api_tool_multi_config = async (params: {
156156
if (!params.show_back_button) {
157157
items.push({
158158
label: API_PROVIDERS_LABEL,
159+
detail: 'API keys are stored encrypted and never leave your device.'
159160
})
160161
} else {
161162
items.push({ label: BACK_LABEL })

0 commit comments

Comments
 (0)