Skip to content

Commit 078a686

Browse files
authored
Fix screen reader for comment editor (microsoft#191828)
* Try forwarding the accessibility support setting to the comment editor * Add isAccessible to comment view Fixes microsoft#146994
1 parent 8e242d5 commit 078a686

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
129129
@IContextKeyService contextKeyService: IContextKeyService,
130130
@IConfigurationService private readonly configurationService: IConfigurationService
131131
) {
132-
super(editor, { keepEditorSelection: true });
132+
super(editor, { keepEditorSelection: true, isAccessible: true });
133133
this._contextKeyService = contextKeyService.createScoped(this.domNode);
134134

135135
this._scopedInstantiationService = instantiationService.createChild(new ServiceCollection(

src/vs/workbench/contrib/comments/browser/simpleCommentEditor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export class SimpleCommentEditor extends CodeEditorWidget {
104104
enabled: false
105105
},
106106
autoClosingBrackets: configurationService.getValue('editor.autoClosingBrackets'),
107-
quickSuggestions: false
107+
quickSuggestions: false,
108+
accessibilitySupport: configurationService.getValue<'auto' | 'off' | 'on'>('editor.accessibilitySupport'),
108109
};
109110
}
110111
}

0 commit comments

Comments
 (0)