@@ -766,6 +766,9 @@ export class SettingsEditor2 extends EditorPane {
766
766
767
767
toggleAiSearch ( ) : void {
768
768
if ( this . showAiResultsAction ) {
769
+ if ( ! this . showAiResultsAction . enabled ) {
770
+ aria . status ( localize ( 'noAiResults' , "No AI results available at this time." ) ) ;
771
+ }
769
772
this . showAiResultsAction . checked = ! this . showAiResultsAction . checked ;
770
773
}
771
774
}
@@ -1931,17 +1934,19 @@ export class SettingsEditor2 extends EditorPane {
1931
1934
} else {
1932
1935
const count = this . searchResultModel . getUniqueResultsCount ( ) ;
1933
1936
let resultString : string ;
1934
- switch ( count ) {
1935
- case 0 : resultString = localize ( 'noResults' , "No Settings Found" ) ; break ;
1936
- case 1 : resultString = localize ( 'oneResult' , "1 Setting Found" ) ; break ;
1937
- default : resultString = localize ( 'moreThanOneResult' , "{0} Settings Found" , count ) ;
1938
- }
1939
1937
1940
1938
if ( showAiResultsMessage ) {
1941
- resultString += localize ( {
1942
- key : 'aiSearchResults' ,
1943
- comment : [ 'This string is appended after noResults, oneResult, or moreThanOneResult' ]
1944
- } , ". AI Results Available" ) ;
1939
+ switch ( count ) {
1940
+ case 0 : resultString = localize ( 'noResultsWithAiAvailable' , "No Settings Found. AI Results Available" ) ; break ;
1941
+ case 1 : resultString = localize ( 'oneResultWithAiAvailable' , "1 Setting Found. AI Results Available" ) ; break ;
1942
+ default : resultString = localize ( 'moreThanOneResultWithAiAvailable' , "{0} Settings Found. AI Results Available" , count ) ;
1943
+ }
1944
+ } else {
1945
+ switch ( count ) {
1946
+ case 0 : resultString = localize ( 'noResults' , "No Settings Found" ) ; break ;
1947
+ case 1 : resultString = localize ( 'oneResult' , "1 Setting Found" ) ; break ;
1948
+ default : resultString = localize ( 'moreThanOneResult' , "{0} Settings Found" , count ) ;
1949
+ }
1945
1950
}
1946
1951
1947
1952
this . searchResultLabel = resultString ;
0 commit comments