@@ -97,7 +97,11 @@ interface IFocusEventFromScroll extends KeyboardEvent {
97
97
const searchBoxLabel = localize ( 'SearchSettings.AriaLabel' , "Search settings" ) ;
98
98
const SEARCH_TOC_BEHAVIOR_KEY = 'workbench.settings.settingsSearchTocBehavior' ;
99
99
100
+ const SHOW_AI_RESULTS_ENABLED_LABEL = localize ( 'showAiResultsEnabled' , "Show AI-recommended results" ) ;
101
+ const SHOW_AI_RESULTS_DISABLED_LABEL = localize ( 'showAiResultsDisabled' , "No AI results available at this time..." ) ;
102
+
100
103
const SETTINGS_EDITOR_STATE_KEY = 'settingsEditorState' ;
104
+
101
105
export class SettingsEditor2 extends EditorPane {
102
106
103
107
static readonly ID : string = 'workbench.editor.settings2' ;
@@ -335,6 +339,7 @@ export class SettingsEditor2 extends EditorPane {
335
339
if ( this . showAiResultsAction ) {
336
340
this . showAiResultsAction . checked = false ;
337
341
this . showAiResultsAction . enabled = false ;
342
+ this . showAiResultsAction . label = SHOW_AI_RESULTS_DISABLED_LABEL ;
338
343
}
339
344
}
340
345
@@ -666,7 +671,7 @@ export class SettingsEditor2 extends EditorPane {
666
671
667
672
const showAiResultActionClassNames = [ 'action-label' , ThemeIcon . asClassName ( preferencesAiResultsIcon ) ] ;
668
673
this . showAiResultsAction = this . _register ( new Action ( SETTINGS_EDITOR_COMMAND_SHOW_AI_RESULTS ,
669
- localize ( 'showAiResults' , "Show AI-recommended results" ) , showAiResultActionClassNames . join ( ' ' ) , true
674
+ SHOW_AI_RESULTS_DISABLED_LABEL , showAiResultActionClassNames . join ( ' ' ) , true
670
675
) ) ;
671
676
this . _register ( this . showAiResultsAction . onDidChange ( async ( ) => {
672
677
await this . onDidToggleAiSearch ( ) ;
@@ -1823,6 +1828,7 @@ export class SettingsEditor2 extends EditorPane {
1823
1828
return this . doAiSearch ( query , token ) . then ( ( results ) => {
1824
1829
if ( results && this . showAiResultsAction ) {
1825
1830
this . showAiResultsAction . enabled = true ;
1831
+ this . showAiResultsAction . label = SHOW_AI_RESULTS_ENABLED_LABEL ;
1826
1832
this . renderResultCountMessages ( true ) ;
1827
1833
}
1828
1834
} ) . catch ( e => {
0 commit comments