File tree Expand file tree Collapse file tree
packages/vscode/src/view/backend/message-handlers/handle-open-settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export const configure_api_providers = async (
1717) : Promise < void > => {
1818 const providers_manager = new ApiProvidersManager ( provider . context )
1919
20+ const back_label = '$(arrow-left) Back'
21+
2022 const edit_button = {
2123 iconPath : new vscode . ThemeIcon ( 'edit' ) ,
2224 tooltip : 'Edit'
@@ -46,6 +48,9 @@ export const configure_api_providers = async (
4648 const saved_providers = await providers_manager . get_providers ( )
4749
4850 return [
51+ {
52+ label : back_label
53+ } ,
4954 {
5055 label : '$(add) Add another API provider...'
5156 } ,
@@ -212,7 +217,6 @@ export const configure_api_providers = async (
212217 ( [ id ] ) => ! saved_provider_names . includes ( id as keyof typeof PROVIDERS )
213218 )
214219
215- const back_label = '$(arrow-left) Back'
216220 const custom_label = '$(edit) Custom endpoint...'
217221
218222 const items : vscode . QuickPickItem [ ] = [
@@ -329,7 +333,6 @@ export const configure_api_providers = async (
329333
330334 const edit_custom_provider = async ( provider : CustomProvider ) => {
331335 const show_field_selection = async ( ) => {
332- const back_label = '$(arrow-left) Back'
333336 const edit_name_label = 'Name'
334337 const edit_base_url_label = 'Base URL'
335338 const change_api_key_label = 'API Key'
You can’t perform that action at this time.
0 commit comments