Fix screen reader for comment editor (#191828)

* Try forwarding the accessibility support setting to the comment editor

* Add isAccessible to comment view
Fixes #146994
This commit is contained in:
Alex Ross
2023-08-30 20:47:31 +02:00
committed by GitHub
parent 8e242d5bd4
commit 078a686c82
2 changed files with 3 additions and 2 deletions
@@ -129,7 +129,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
@IContextKeyService contextKeyService: IContextKeyService,
@IConfigurationService private readonly configurationService: IConfigurationService
) {
super(editor, { keepEditorSelection: true });
super(editor, { keepEditorSelection: true, isAccessible: true });
this._contextKeyService = contextKeyService.createScoped(this.domNode);
this._scopedInstantiationService = instantiationService.createChild(new ServiceCollection(
@@ -104,7 +104,8 @@ export class SimpleCommentEditor extends CodeEditorWidget {
enabled: false
},
autoClosingBrackets: configurationService.getValue('editor.autoClosingBrackets'),
quickSuggestions: false
quickSuggestions: false,
accessibilitySupport: configurationService.getValue<'auto' | 'off' | 'on'>('editor.accessibilitySupport'),
};
}
}