Repository navigation
add setting for aria-live assertive alert for ghost text - #174606
Conversation
|
Megan Rogge (@meganrogge) -- thanks for doing this! I don't hear any audio cues when suggestion is available. The aria-live works well though. I configured the following: "editor.ariaAssertiveInlineSuggestion": true,
"audioCues.debouncePositionChanges": trueWhat is |
What do you have
This is a new setting I added to fix some issues you reported with audio cue responsiveness. The PR: #173334 You'll want to set Here were the issues that led us to have that setting: |
|
Megan Rogge (@meganrogge) -- Thanks for your detailed explanation! I have already turned it on: Isn't inline suggestion audio cues only for the inline hint such as copilot? this is not playing against normal auto-suggestion. |
|
That is correct, it will only play when there's an inline hint such as copilot by design. If you are hoping for an audio cue to be played when a collapsed ? suggestion is available, I'm not sure if there's an issue for that already, but we can make one I edited my reply above with more context fyi 😄 |
Since we have taken this out, I think we need the audio cues to audibly indicate the suggestion popup. |
|
When I test, here's what I see/hear:
I am not sure why you don't hear the audio cue getting played. When you run Help: List Audio Cues and go down to the inline suggestion one, does it play? |
|
To be clear, the suggestions impacted by this PR are only the ones that come from copilot. So instead of the popup saying "Suggestion: text to insert", it will say "text to insert" |
|
Megan Rogge (@meganrogge) -- Yes, the audio cue is played well in the help menu. But, no success with the auto suggestion. Please see if you can replicate #147230. |
|
JooYoung Seo (@jooyoungseo) I now understand the problem. I can repro the issue you linked to We have 2 kinds of suggestions: inline and ones coming from a widget. This PR deals only with the inline suggestions. I agree with you that we should play an audio cue for either of the cases. But we probably will want to have a separate sound because to interact with widget suggestions, you need to use arrow keys/ a different way of interacting |
|
Megan Rogge (@meganrogge) -- I agree with your ideas using two different audio cues to indicate the suggestion types. The one that I wanted to keep consistent is the pair of audioCue-aria-live event for either of suggestions. |
|
I am not sure I understand, but think that you're suggesting the other suggestion type - those coming from the widget, should also have aria-live assertive alert applied. If so, I can look into that when adding the audio cue for that type of suggestion. |
Henning Dieterichs (hediet)
left a comment
There was a problem hiding this comment.
See comment
|
something I just noticed is the aria alert happens before the audio cue is played, which is not good. |
|
Megan Rogge (@meganrogge) -- I hear you because I encountered the same issue when working on my own project. Could we make the audio cue more responsive and played earlier? We want to keep the aria-live as responsive as possible without any silent filler to unnecessarily wait for the audio cue trigger. |
|
I have it working nicely now, but how I did that was a bit hacky. It's a tricky problem since the code is synchronous and needs to remain that way. |
|
Afaik the ghost text class has some methods to turn it into text, that is also used for the hover. |
|
This deprecates AudioCue.inlineSuggestion, right? |
addressed
|
Henning Dieterichs (@hediet) maybe i'm misunderstanding, but that's still used here |
|
I think now the audio cue for inline suggestions no longer debounces and doesn't trigger on change anymore. I.e. when you cycle between suggestions I think it plays the sound now every time. |
|
Henning Dieterichs (@hediet) based on the user's testing, this wasn't effective #175105. should we revert it? |
|
Then we should revert I think! |
fixes #167348
JooYoung Seo (@jooyoungseo), since you last tested, I've:
editor.ariaAssertiveInlineSuggestionwhich is false by defaultSuggestion:from the alert so that only the suggested text is read. There should be an audio cue played to indicate the suggestion shows up then you should receive the alert with the content it suggests.Could you pls test and let us know if it's still what you expect?