File tree Expand file tree Collapse file tree
workbench/browser/parts/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ export class View extends ViewEventHandler {
136136
137137 this . domNode = createFastDomNode ( document . createElement ( 'div' ) ) ;
138138 this . domNode . setClassName ( this . getEditorClassName ( ) ) ;
139+ // Set role 'code' for better screen reader support https://github.com/microsoft/vscode/issues/93438
140+ this . domNode . setAttribute ( 'role' , 'code' ) ;
139141
140142 this . overflowGuardContainer = createFastDomNode ( document . createElement ( 'div' ) ) ;
141143 PartFingerprints . write ( this . overflowGuardContainer , PartFingerprint . OverflowGuard ) ;
Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ export class EditorControl extends Disposable {
113113 const editorPaneContainer = document . createElement ( 'div' ) ;
114114 addClass ( editorPaneContainer , 'editor-instance' ) ;
115115 editorPaneContainer . setAttribute ( 'data-editor-id' , descriptor . getId ( ) ) ;
116- editorPaneContainer . setAttribute ( 'role' , 'code' ) ;
117116
118117 editorPane . create ( editorPaneContainer ) ;
119118 }
You can’t perform that action at this time.
0 commit comments