Skip to content

Commit 33d28b9

Browse files
committed
1 parent 9a28101 commit 33d28b9

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/vs/workbench/browser/parts/editor/accessibilityStatus.ts

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,27 @@ export class AccessibilityStatus extends Disposable implements IWorkbenchContrib
4040
}
4141

4242
private showScreenReaderNotification(): void {
43-
if (!this.screenReaderNotification) {
44-
this.screenReaderNotification = this.notificationService.prompt(
45-
Severity.Info,
46-
localize('screenReaderDetectedExplanation.question', "Are you using a screen reader to operate VS Code?"),
47-
[{
48-
label: localize('screenReaderDetectedExplanation.answerYes', "Yes"),
49-
run: () => {
50-
this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
51-
}
52-
}, {
53-
label: localize('screenReaderDetectedExplanation.answerNo', "No"),
54-
run: () => {
55-
this.configurationService.updateValue('editor.accessibilitySupport', 'off', ConfigurationTarget.USER);
56-
}
57-
}],
58-
{
59-
sticky: true,
60-
priority: NotificationPriority.URGENT
43+
this.screenReaderNotification = this.notificationService.prompt(
44+
Severity.Info,
45+
localize('screenReaderDetectedExplanation.question', "Are you using a screen reader to operate VS Code?"),
46+
[{
47+
label: localize('screenReaderDetectedExplanation.answerYes', "Yes"),
48+
run: () => {
49+
this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
6150
}
62-
);
51+
}, {
52+
label: localize('screenReaderDetectedExplanation.answerNo', "No"),
53+
run: () => {
54+
this.configurationService.updateValue('editor.accessibilitySupport', 'off', ConfigurationTarget.USER);
55+
}
56+
}],
57+
{
58+
sticky: true,
59+
priority: NotificationPriority.URGENT
60+
}
61+
);
6362

64-
Event.once(this.screenReaderNotification.onDidClose)(() => this.screenReaderNotification = null);
65-
}
63+
Event.once(this.screenReaderNotification.onDidClose)(() => this.screenReaderNotification = null);
6664
}
6765
private updateScreenReaderModeElement(visible: boolean): void {
6866
if (visible) {

0 commit comments

Comments
 (0)