Repository navigation
Description
Type: Bug
I'm grouping together in this single issue several issues related to audio cues and accessibility-related text notifications in the editor. This is because they appear to be closely related and likely share a common cause. It is suspected that the triggering mechanism for both the audio cue and the text alert is the same, leading to the observed problematic behavior.
In the Visual Studio Code editor, there are issues related to the audio cues that have been present in previous versions. Additionally, with the introduction of accessibility-related text notifications in v1.86, new problems have arisen. These notifications, intended for screen reader users, are triggered when the cursor encounters lines with errors, warnings, breakpoints, etc. The issues with these features are as follows:
-
Both the audio cues and accessibility-related text notifications are triggered whenever the cursor moves within the line, such as when using Control+left/right to navigate to the previous/next word. This is particularly disruptive for the text notifications, as the repeated reading of the word "error", "warning", etc., often interrupts the normal verbalization of the screen reader. It would be more effective if these cues and notifications were only triggered when moving to a different line.
-
There appears to be a slight delay before the accessibility-related notification is announced. If the user moves too quickly between lines, the notification is not read in sync with the corresponding line, or sometimes it is read multiple times. It would be more efficient if the notification for a line was cancelled when the user moves to another line, ensuring it is always synchronized with the appropriate line.
An advanced approach could be to have different audio cues for line-specific errors/warnings/breakpoints and "inline" errors/warnings/breakpoints. One suggestion would be to use the same sound but with different pitches for these two types of cues. This would not be necessary for certain audio cues that are only line-specific (such as folded code) or triggered by specific events (such as task audio cues).
VS Code version: Code 1.86.0 (0504748, 2024-01-31T10:28:19.990Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Activity
akash07k commentedon Feb 4, 2024
+1
meganrogge commentedon Feb 5, 2024
Thanks for the issue.
Re:
I have commented in #204258. This is a result of using
statusrather thanalert. I don't think there's a way to cancel astatusmessage.Re:
Tracking the issue of playing the alert/audio cue repeatedly while within the line here: #188285
For now, given you find this disruptive, could you disable the alerts and keep the audio cues on?
Also cc Roberto Perez (@rperez030) and JooYoung Seo (@jooyoungseo)
rperez030 commentedon Feb 5, 2024
Another problem that someone brought to my attention is that, if one doesn't type very fast, you start getting alert as you type which can be distracting.
One possibility that comes to mind, and I don't know how feasible that would be, is to use delays. for example, when moving the cursor between lines, the status message would only be triggered if someone remains for, let's say, more than a second in a given line, which would indicate they are actually listening to the content and not just navigating. The delay while typing should be even longer, probably 5 seconds, which would indicate that the person stopped typing.
meganrogge commentedon Feb 6, 2024
Thanks for this feedback Roberto Perez (@rperez030).
Seems like we should probably disable the in line audio cues (warning, error, debugger on breakpoint) until this is sorted out. I don't think it will be a quick fix. Do you think these should be disabled as a candidate Roberto Perez (@rperez030) or is disabling them in insider's sufficient?
meganrogge commentedon Feb 6, 2024
I am leaning toward just fixing this in insider's. Users can disable the settings if they find them disruptive.
meganrogge commentedon Feb 6, 2024
I think using
statusis somewhat of an issue here because of the inherently dicey timing component. We don't currently have a way to cancel that.krperry commentedon Feb 6, 2024
I agree with some of the above, but the real problem is the messages don’t make since. If you are sighted and you have a red line under two characters you know there is a problem, there. If you are blind and the line says error and nothing else, how is a screen reader user supposed to know where that error is? I have been coding long enough that I can figure it out but if this is supposed to help people find errors quickly. The current method is not helping blind people find the error it is only helping find the line. I might be wrong because I am 100% blind and the last time, I could see to code was with THE Commodores 20 and 64, and the Atari 800XL But if I made this feature for python and someone typed the following:
df my_function():
Now if I move to the line, I get an Error and a warning. I have no idea what the warning is and if I am a new python programmer, I have no idea what the error is. Let’s say my cursor is on my_function and I arrow left and right. It should not keep saying errors and warning that is true because hopefully it is clear that the error is on the df. If I arrow over the part of the code that has the red underline or whatever it is then it should say error and or beep, but it shouldn’t say error unless I am arrowing on the error, or I arrow up and down on to the line with error. That way I can move around without hearing a lot of repeated warnings and errors that make no since and make it hard for a lesser skilled screen reader user to even read the code.
If you can’t tell what the error is like the whole line is redlined, then it should only say error or warning once when I arrow to that line or that line is focused by jumping to it by a goto or search. It should only beep once as well.
The error messages should also be off by default. Having the sounds on by default is fine but having the messages on by default is just too much.
There is another problem too. As I backspace it says error and warning a lot. I am sure that is a part of this same problem.
I personally think that the error beep should not be at 300 milliseconds by default when you stop typing. So many coders who are blind and use this use this to learn coding as well as code on a regular basis. For those of us who type fast enough and think in code 300 MS is fine but for many people who are learning and using code completion get more error reports because they don’t complete a line of code fast enough. I think the default should be closer to 3 seconds before it starts alerting you that you have done something wrong. This gives a blind person time to review their line of code and it will help if they are just making a correction and get rid of the beep, beep, beep, that we get right now.
If someone wants to turn the speed up to 300 MS then more power to them but as a default right now the error messages beep way too often as you try to complete a line of code.
The error beeps and messages if on should be quick when you land on a line but not while you’re typing.
Remember when it all comes down to it this is just an indicator that there is something wrong. If a person wants to know what is wrong as a blind user, they will do CTRL+SHIFT+m to get the messages. If it read out what the error was rather than just error, error, error, maybe it would help but even that could be too annoying. It is better to indicate and then let the user press a key to read what is being indicated. That way if a person needs more, they can activate more information. If you give them too much, they can’t get rid of it as easily. It is like too much cold is better than too much hot. I can put on a lot of wintry weather gear to stay warm but if I must take off all my clothes to stay cool people are going to go nuts. If a person who is not extra skilled with a screen reader hears too much, they go nuts . If they get indications that there is a problem and can ask for more help, then that makes for a powerful tool.
All these things should have settings which so far, they do. The problem is many of the default settings right now are both good and bad Speed for beep bad, number of messages bad. Having error beeps on by default good. Easy to get to errors and back good. WE want information but be as a sighted person would not want their whole screen flashing bright red for each two character error. We don’t’ want to hear to much. We do need to be able to know what is being indicated though.
meganrogge commentedon Feb 6, 2024
krperry thanks for your thoughts, I consulted with screen reader users before enabling this by default.
I'm happy to revisit that though, as I indicated above, since it seems there are some issues with the experience that will be addressed over time.
krperry commentedon Feb 6, 2024
43 remaining items
meganrogge commentedon Apr 3, 2024
good to know, so seems we can stick with using
aria.statusthen.Fixes #204257. Refactors AccessibilitySignalService and renames LineF…
Fixes #204257. Refactors AccessibilitySignalService and renames LineF…
hediet commentedon Apr 22, 2024
Megan Rogge (@meganrogge) can you verify?
krperry commentedon Apr 23, 2024
This all seems to be working better. I stil have to tell students when they want to make the delay when the error sounds are played they have to go to settings and sett the first itme which is I think Hover delay to something like 1 to 5 seconds. They can't just find that setting because it doesn't say "this slows down how often accessibility sounds happen". At least the setting can be set though. All the other stuff in this issue works so much better. The only one that is still a bit anoying is if you have an error in a line and you are typing to fix the error while in the error. Every key press beeps like the error. I am not sure there is much you can do about that and once you fix the error it stops which is great. I would consider this issue is fixed.
hediet commentedon Apr 23, 2024
That is odd, it should be delayed by 1 second.
rperez030 commentedon Apr 23, 2024
A 1-second delay, in my opinion, does not significantly improve user experience. Ideally, this delay should be configurable, with a default setting of at least 3 seconds. setting
editor.hover.delayis a viable workaround; however, it falls short in addressing the issue when an error or warning state has already been triggered.meganrogge commentedon Apr 24, 2024
Roberto Perez (@rperez030) thanks for that feedback. Henning Dieterichs (@hediet) what do you think about making this configurable?
hediet commentedon Apr 25, 2024
I'm all up for making the delays configurable! Can you add the settings?