@@ -40,29 +40,27 @@ export class AccessibilityStatus extends Disposable implements IWorkbenchContrib
40
40
}
41
41
42
42
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 ) ;
61
50
}
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
+ ) ;
63
62
64
- Event . once ( this . screenReaderNotification . onDidClose ) ( ( ) => this . screenReaderNotification = null ) ;
65
- }
63
+ Event . once ( this . screenReaderNotification . onDidClose ) ( ( ) => this . screenReaderNotification = null ) ;
66
64
}
67
65
private updateScreenReaderModeElement ( visible : boolean ) : void {
68
66
if ( visible ) {
0 commit comments