Skip to content

Screen readers not announcing encountered break points #90842

Closed

Description

Sana Ajani (@sana-ajani)
Isidor Nikolic (@isidorn)

Issue Type: Bug

Issue:

VoiceOver is not announcing when a break point is encountered within the file.

Expected:

VoiceOver should announce when the cursor encounters a break point within the file.

Actual:

VoiceOver is not announcing when it encounters a break point.

Recreate:

  • Turn on VoiceOver
  • Insert a break point within a file
  • Use the up and down arrow keys to move the cursor over the line containing the break point

VS Code version: Code 1.42.1 (c47d83b, 2020-02-11T14:44:27.652Z)
OS version: Darwin x64 19.3.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2700)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 1, 2
Memory (System) 16.00GB (3.72GB free)
Process Argv
Screen Reader yes
VM 0%
Extensions (3)
Extension Author (truncated) Version
python ms- 2020.2.63072
python tht 0.2.3
vscodeintellicode Vis 1.2.5

Activity

  1. added
    accessibility
    debug
    on Feb 18, 2020
  2. isidorn commented on Feb 18, 2020

    @isidorn

    Using aria alerts to announce that there is a breakpoint on that line seemed too intrusive and potentially spammy. Thus we decided to have F1 > "focus on breakpoints" command that can take the user to the breakpoints view where he / she can navigate over them.

    redeyedragon Would you prefer that on every line we announce that a breakpoint is present? Would you expect that to be announced before or after the line content?

    Please note that we announce once breakpoints get hit, which might be related to this.

  3. added
    under-discussion
    on Feb 18, 2020
  4. bjduarte commented on Feb 18, 2020

    @bjduarte
    Author

    I understand what you are saying it could seem a bit intrusive but here is my perspective. If someone is at the point where they are inserting breakpoints they are probably in debug mode which means they are adding and removing several break points. It is absolutely necessary that the user knows where they have break points placed within the file. I believe it should be announced on the line where the break point is placed and it should be announced at the beginning of the line. As I move through my code I do not want to have to listen to every lines contents to find where I have placed a break point. If I hear it at the start of the line I can decide from there to skip it or read the rest of the line.

    I went through the F1 list of commands. There is no key binding set for moving to or through break points. This might help a bit but still there is no indication through speech that a break point is present on a line.

  5. isidorn commented on Feb 18, 2020

    @isidorn

    Ok this makes sense, and thanks for feedback. Assigning to next milestone (March) to investigate further then what could be done here.

    As for F1 commands, try to F1 > focus breakpoints view and in there you can jump to breakpoints and navigate which should help.

  6. isidorn commented on Mar 4, 2020

    @isidorn

    After thinking about this a bit furhter I believe this is a subset of a more general issue: items in the glyph margin are not read out to screen readers.
    Same as a breakpoint can be on a line, we can also have a code action or a folding or a line number.

    Related issues #43262
    microsoft/monaco-editor#410

    Currently our strategy is not to read any of those and users can manually trigger some of those to be read out.
    Maybe a more optimal solution would be one command that could be triggered to read all of the following: breakpoints, code actions, line numbers.
    Not on the current plan, thus assigning to On Deck.

    fyi Alexandru Dima (@alexdima)

  7. bjduarte commented on Mar 4, 2020

    @bjduarte
    Author

    Isidor Nikolic (@isidorn)
    In my opinion and experience if there are attributes being displayed visually, effecting my code base, or providing me with some kind of information relevant to my development environment I need/want to know about that. For example, when I am in VIM and developing code I turn on line numbers so when I view a stack trace I know where the issue is. When I switch to VIM I can jump to the line quickly but it helps to know what line it is on because the issue is not always on the line referenced. similarly, when there are breakpoints, line breaks, syntax issues, or line numbers; I want to know about them. They might not need to be read out verbose but knowing they are present on a line is information a developer needs to know. I think it could be handled in the same way "hints" are handled when you enter a () into a function. It notifies you there is suggested hints but does not display them.

    Additionally, it would be awesome if there could be some kind of indicator for tabs in the beginning of the line. If this is a feature already is there a way to enable it? This is another feature that could be done on command with a key stroke. Perhaps a CTRL + T, could read out "2, or 3 to let me know I am indented 3 levels.

  8. isidorn commented on Mar 4, 2020

    @isidorn

    redeyedragon what you are saying makes sense.

    As for reading indentation we plan to tackle that in the current march milestone as is coveed by this issue #88877

  9. changed the title [-]VoiceOver not announcing encountered break point[/-] [+]Screen readers not announcing encountered break points[/+] on Mar 25, 2020
  10. removed
    under-discussion
    on Mar 25, 2020
  11. 13 remaining items

  12. aleventhal commented on Apr 24, 2020

    @aleventhal
  13. LeonarddeR commented on May 1, 2020

    @LeonarddeR

    If an editable content approach is used, that might also open up possibilities to fix #90578 and #95428.

  14. isidorn commented on May 7, 2020

    @isidorn

    Created this item for the contenteditable exploration which I plan to do this milestone #97154

  15. cannona commented on Dec 14, 2020

    @cannona
    Contributor

    Hi. I'm also struggling with this issue. Mostly, I just want a notification when I reach a line with folded code.

    One option you might consider would be to add earcons. I'm not sure if there is ever any additional information provided along side these left-margin annotations, other than the fact that they exist, but playing a specific sound when the user reaches a line with folded code, or a breakpoint, would work well for me, and is not likely to interfere with the users ability to listen to their screen reader. Unfortunately, this would not help users who are Deaf or hard of hearing, or who, for whatever reason, use braille only.

  16. isidorn commented on Aug 17, 2021

    @isidorn

    Quick update: we are looking into doing quick announcements on the vscode side when a decoration is encountered (like a breakpoint). More details in this issue #130565 (comment)
    Feedback welcome.

    fyi Henning Dieterichs (@hediet)

  17. isidorn commented on Jan 7, 2022

    @isidorn

    Fixed via #140044 by Henning Dieterichs (@hediet)
    Sound design by Gino Scarpino (@gino-scarpino)
    This will be present in VS Code insiders from Monday. We would really appreciate the feedback.
    Thank you!

    Verifier:

    1. Turn on a screen reader, or set "audioCues.enabled": "on"
    2. Move cursor to a line with a breakpoint. Make sure there is a "stop-like" sound
  18. added
    verification-needed
    on Jan 7, 2022
  19. locked and limited conversation to collaborators on Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilitydebugfeature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions