Skip to content

Commit e612d4d

Browse files
authored
Merge pull request microsoft#196769 from microsoft/merogge/ann
never alert if audio cue is set
2 parents 89e6f7e + 1bb06e8 commit e612d4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/accessibility/browser/accessibleNotificationService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ export class AccessibleNotificationService extends Disposable implements IAccess
5757
this._audioCueService.playSound(audioCue.sound.getSound(), true);
5858
return;
5959
}
60+
if (audioCueSetting !== 'never') {
61+
// Never do both sound and alert
62+
return;
63+
}
6064
const alertSettingValue: NotificationSetting = this._configurationService.getValue(alertSetting);
6165
if (this._shouldNotify(alertSettingValue, userGesture)) {
6266
this._logService.debug('AccessibleNotificationService alerting: ', alertMessage);

0 commit comments

Comments
 (0)