parent
773c398dfc
commit
35ac6b9454
|
@ -1022,6 +1022,7 @@ export class SearchView extends ViewPane {
|
|||
}
|
||||
this.viewModel.cancelSearch();
|
||||
this.updateActions();
|
||||
this.tree.ariaLabel = nls.localize('emptySearch', "Empty Search");
|
||||
|
||||
aria.status(nls.localize('ariaSearchResultsClearStatus', "The search results have been cleared"));
|
||||
}
|
||||
|
@ -1557,9 +1558,12 @@ export class SearchView extends ViewPane {
|
|||
this.hasSearchResultsKey.set(fileCount > 0);
|
||||
|
||||
const msgWasHidden = this.messagesElement.style.display === 'none';
|
||||
|
||||
const messageEl = this.clearMessage();
|
||||
let resultMsg = this.buildResultCountMessage(this.viewModel.searchResult.count(), fileCount);
|
||||
this.tree.ariaLabel = resultMsg + nls.localize('forTerm', " - Search: {0}", this.searchResult.query?.contentPattern.pattern ?? '');
|
||||
|
||||
if (fileCount > 0) {
|
||||
const messageEl = this.clearMessage();
|
||||
let resultMsg = this.buildResultCountMessage(this.viewModel.searchResult.count(), fileCount);
|
||||
if (disregardExcludesAndIgnores) {
|
||||
resultMsg += nls.localize('useIgnoresAndExcludesDisabled', " - exclude settings and ignore files are disabled");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue