Skip to content

Commit df6e1ae

Browse files
authored
Merge pull request microsoft#196766 from microsoft/merogge/clear
use accessible notification service instead of verbose clear alert for settings
2 parents f6ec2f1 + 161abae commit df6e1ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/search/browser/searchView.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { IEditor } from 'vs/editor/common/editorCommon';
3030
import { CommonFindController } from 'vs/editor/contrib/find/browser/findController';
3131
import { MultiCursorSelectionController } from 'vs/editor/contrib/multicursor/browser/multicursor';
3232
import * as nls from 'vs/nls';
33-
import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility';
33+
import { AccessibleNotificationEvent, IAccessibilityService, IAccessibleNotificationService } from 'vs/platform/accessibility/common/accessibility';
3434
import { MenuId } from 'vs/platform/actions/common/actions';
3535
import { ICommandService } from 'vs/platform/commands/common/commands';
3636
import { IConfigurationChangeEvent, IConfigurationService } from 'vs/platform/configuration/common/configuration';
@@ -189,6 +189,7 @@ export class SearchView extends ViewPane {
189189
@ITelemetryService telemetryService: ITelemetryService,
190190
@INotebookService private readonly notebookService: INotebookService,
191191
@ILogService private readonly logService: ILogService,
192+
@IAccessibleNotificationService private readonly accessibleNotificationService: IAccessibleNotificationService
192193
) {
193194

194195
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
@@ -1245,7 +1246,7 @@ export class SearchView extends ViewPane {
12451246
this.viewModel.cancelSearch();
12461247
this.tree.ariaLabel = nls.localize('emptySearch', "Empty Search");
12471248

1248-
aria.status(nls.localize('ariaSearchResultsClearStatus', "The search results have been cleared"));
1249+
this.accessibleNotificationService.notify(AccessibleNotificationEvent.Clear);
12491250
this.reLayout();
12501251
}
12511252

0 commit comments

Comments
 (0)