Skip to content

vscode and voice over mac os #319725

Closed

Description

@capitaineariano

Hello,
When I use VS Code on macOS 26, I encounter several accessibility issues.
The most significant issue is a synchronization problem between the braille display and the VoiceOver cursor. The text displayed under the VoiceOver cursor does not match the text shown on the braille display, which makes it very difficult to work efficiently.
I tried updating the accessibility settings in VS Code, but the issue remains. I experience this problem with every type of file, including .txt, .js, .php, and .py files.
When I navigate through the sidebar to browse files and folders, I see "groups" displayed on my braille display. The same issue occurs in the console when I try to read error messages.
Thank you for looking into this issue.

Activity

  1. meganrogge commented on Jun 5, 2026

    @meganrogge
    Collaborator

    Aiday Marlen Kyzy (@aiday-mar) I think we have another issue tracking this?

  2. aiday-mar commented on Jun 8, 2026

    @aiday-mar
    Collaborator

    I am not quite sure, I am marking this as a bug

  3. added
    bug
    accessibility
    on Jun 8, 2026
  4. robin24 commented on Aug 13, 2026

    @robin24

    Hi,

    Another blind developer using VO here, I can reproduce this issue exactly as described.

    Steps to reproduce:

    1. On a Mac with a Braille display connected and VoiceOver running, launch Visual Studio Code.
    2. Press CMD-N to create a new text file.
    3. Type the following:

    Line 1
    Line 2
    Line 3

    1. Jump to the top with CMD-Up Arrow.
    2. Press Down Arrow to move down line by line, and observe the text output shown on the Braille display.

    Results:

    After typing the 3 lines of text, pressing CMD-Up Arrow mostly results in line 1 correctly showing on the Braille display.
    When moving to the next line, however, the Braille display either still displays line 1, or goes blank entirely.
    Moving on to line 3 often results in no change at all on the Braille display.

    This is a mission-critical show stopper for me personally, and I've been forced to use another code editor until this is fixed.

  5. miraka-226 commented on Aug 21, 2026

    @miraka-226

    Bonjour,
    je vois que je ne suis pas seul, je suis un développeur aveugle qui utilise voice over et une plage braille. Je constate également le même problème que les personnes précédentes. Quand je crée un nouveau fichier .md et que je tape le texte suivant:

    mon titre

    voici. un texte pour la démonstration.

    je vois tout écrit sur la même ligne sur ma plage braille. Quand je fais flèche haut ou flèche bas j'ai toujours une ligne de décalage entre ce qui est sous le curseur voice over et ce qui est affiché sur ma plage braille. Ce problème se passe sur tous les types de fichiers. Je dois toujours réactualiser le curseur voice over en faisant VO flèche gauche puis VO flèche droite. Comme mon prédécesseur j'ai du me tourner vers un autre éditeur de code. Les éditeurs djetbrains ont un meilleur suivi du braille avec voice over.
    Avec la plage braille je n'arrive pas à lire les message d'erreur dans la console ainsi que les dossiers et fichiers dans la sidebar.

    Dans combien de temps pourrait-on voir se problème résolu?

  6. robin24 commented on Sep 2, 2026

    @robin24

    I dug into this with a Braille display and can now point at the cause and the fix.

    Root cause: a Chromium bug in the macOS accessibility line APIs, not VS Code's editor code.

    Chromium's macOS layer answers AXLineForIndex and AXRangeForLine wrongly unless the caret is at the very start of a line: the line number comes back one too high, and the range for any line other than the first comes back empty. VoiceOver uses these to decide which line to put on the Braille display, so the display shows the wrong line, a stale line, or nothing, and only Cmd+Up (caret at index 0) looks right.

    Why it is not an editor setting: "editor.editContext": false (the <textarea> path) makes no difference, because the bug is in the platform layer and affects native textareas and ARIA textboxes alike.

    Evidence (same test page, same VoiceOver, same Braille display):

    • Google Chrome 152.0.7977.66 (contains the fix): six differently built multi-line text fields, including one that mirrors VS Code's div[role=textbox] + EditContext approach and a plain <textarea>: all six track lines correctly, each line starts at cell 1 of the display.
    • VS Code 1.135.0 (Electron 42.8.1, Chromium 148), same page loaded in the built-in Simple Browser: all six fail in the same way as the editor.
    • Chromium's AXLineForIndex/AXRangeForLine implementation checked at the exact revisions VS Code shipped (Chromium 132: range works; 134, 138, 142, 148: broken; 152: fixed).
    • Direct query of the macOS accessibility API on VS Code 1.135.0 with the caret in the middle of line 2 of a three-line text (this is what VoiceOver is told):
    role: AXTextArea
    AXValue: "This is test line 1\nThis is test line 2\nThis is test line 3"
    AXSelectedTextRange: {25, 0}
    AXInsertionPointLineNumber: 1          (correct, 0-based)
    AXLineForIndex(25) = 2                 (wrong: one line too far)
    AXRangeForLine(0) = {0, 20} "This is test line 1\n"
    AXRangeForLine(1), AXRangeForLine(2): no result
    AXLineForIndex for every index: 0:0 1:1 2:1 ... 19:1 20:1 21:2 ... 40:2 41:3 ... 58:3
    

    Only index 0 and the exact line starts (20, 40) map to the right line; every other index is assigned to the following line. That is the lower_bound off-by-one fixed by the Chromium commit above.

    • The same query against Google Chrome 152.0.7977.66 (contains the fix), caret in the middle of line 2:
    AXValue: "This is line 1\nThis is line 2\nThis is line 3"
    AXSelectedTextRange: {20, 0}
    AXInsertionPointLineNumber: 1
    AXLineForIndex(20) = 1                 (correct)
    AXRangeForLine(0) = {0, 15}  "This is line 1\n"
    AXRangeForLine(1) = {15, 15} "This is line 2\n"
    AXRangeForLine(2) = {30, 14} "This is line 3"
    AXLineForIndex for every index: 0:0 1:0 ... 14:0 15:1 ... 29:1 30:2 ... 43:2
    

    What VS Code can do:

    1. Move to Electron 44 (v44.0.0, Chromium 152.0.7977.54, released 2026-08-25). Electron 43 (Chromium 150, the currently open update PR chore: update to Electron 43 #332935) does not contain the fix.
    2. Alternatively ask Electron to backport commit 36ac8f3179 to its 42-x-y and 43-x-y branches; Electron has no patch for it on either branch today. It is a small, self-contained change in ui/accessibility/platform/browser_accessibility_cocoa.mm and ax_platform_node_cocoa.mm.

    A related fix for AXLineTextMarkerRangeForTextMarker (https://crbug.com/418936594, commit 4c29808fa1, first in Chromium 154) matters for editor.renderRichScreenReaderContent, where one line is made of several spans.

    One VS Code-side improvement worth considering separately: SimpleScreenReaderContent replaces the whole text node of the screen reader div on every keystroke (domNode.textContent = value), which gives the accessibility node a new identity each time; editing the existing text node in place keeps it stable. That is not what causes this issue, but it removes a source of stale references for screen readers that use text markers.

  7. robin24 commented on Sep 4, 2026

    @robin24

    Update: Electron backported the fix (electron/electron#53428) and shipped it in Electron 43.6.0 on 2026-09-04. From its release notes: "Fixed VoiceOver Braille displays showing the wrong line in multi-line text fields on macOS: AXLineForIndex and AXRangeForLine now return the line containing the caret." Electron 44.x has the fix natively.

    The open Electron 43 update (#332935) currently targets 43.4.1, which does not contain it. Moving that update to 43.6.0 or later would resolve this issue for VS Code; I have asked there.

    For what it is worth, I verified with a local VS Code build on Electron 44 that the Braille display tracks lines correctly again with VoiceOver: every line starts at the first cell, and the accessibility API returns the right line and range for the caret.

  8. added
    upstream
    upstream-issue-fixed
    chromium
    on Sep 4, 2026
  9. added
    unreleased
    on Sep 16, 2026
  10. added this to the 1.139.0 milestone on Sep 16, 2026
  11. added
    insiders-released
    and removed
    unreleased
    on Sep 16, 2026
  12. added
    macos
    on Sep 21, 2026
  13. miraka-226 commented on Oct 23, 2026

    @miraka-226

    Bonjour,
    Je tenais tout d’abord à remercier toutes les personnes qui ont participé à l’amélioration de vscode , je trouve que depuis la dernière mise à jour il y a une très grande amélioration en matière de synchronisation de VoiceOver sur macOS et de la plage Braille. Le problème cité dans les commentaires précédent a été résolu !
    Mais à ce jour, il persiste encore quelques bugs.

    Quand on arrive à la fin d’un fichier sur la dernière ligne et qu’on veut remonter dans le texte en refaisant flèche haut, le curseur, VoiceOver se bloque, il faut recharger le focus du curseur VoiceOver en faisant VO flèche gauche et VO flèche droite pour ré actualiser le curseur !

    Si le fichier est très long, par exemple, il commence à faire 200 lignes, le curseur VoiceOver n’arrive pas à se focaliser sur la zone des éditions du premier, coup, il faut attendre quelques secondes voir relancer le curseur comme dans l’état précédente, pour qu’il arrive à focaliser !

    Concernant les messages d’erreur dans la console de VS code, ils ne sont toujours pas lisibles avec la plage Braille, à la place, on voit afficher : barre d’outils quand on navigue d’un message d’erreur à l’autre.

    Merci encore pour l’amélioration, déjà présente. Continuez comme ça !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilitybugchromiuminsiders-releasedmacosupstreamupstream-issue-fixedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions