You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Accessibility] Terminal a11y buffer is not automatically updated #172582
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesterminal-accessibilityIssues related to the terminal help widget, accessibility buffer, or navigation modeverifiedVerification succeeded
Change directory to anywhere having lots of files and sub-directories.
Type ls -1
As soon as typing ls -1, press Shift+Tab to focus in the terminal a11y buffer.
Press Ctrl+End to go to the end of the buffer and see if it reflects the last file name of the ls command: It is not actualy.
Press Tab to terminal input and Shift+Tab to come back to a11y output buffer: This time the last line of the buffer reflects the the last item on the screen.
Expected Behavior
The terminal a11y buffer needs to get updated automatically without manual focus refresh.
Performance isn't a concern but since it's an edge case I think it makes sense to listen for buffer changes and refresh it. We will probably need to append and not replace though
Another problem encountered is that if I type some text in the accessibility buffer, it is no longer updated. It seems that the problem only happens if the text is typed very close to the last line of the buffer. I tried to reproduce the problem by typing a text at the beginning of the buffer but I couldn't.
To reproduce try the following steps:
Run some commands in the VSCode terminal.
Press the shift+tab keys and explore the accessibility buffer using the arrow keys. Note that the executed commands result are present as expected.
Move the cursor to the last line of the buffer and type any garbage.
Press tab and run more commands in the terminal.
Press the shift+tab keys and explore the accessibility buffer.
In my environment the result of the commands executed in step 4 are not present in the accessibility buffer, only the commands executed in step 1 are shown.
Please treat this as a significant bug and not an "edge case". It's currently impossible to review the log of any running task or command until the task completes or the shell prompt is returned. That eliminates access to many common things like:
can you repro if you start with a new terminal, don't run clear? i'm trying exactly what you show and not seeing an issue - in the latest insider's (as of 2 hours ago)
I can repro but it's quite difficult, there's probably some race condition where output occurs before the listener is registered. I suggest we action this as part of the _getContent testing/refactoring
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesterminal-accessibilityIssues related to the terminal help widget, accessibility buffer, or navigation modeverifiedVerification succeeded
Activity
Tyriar commentedon Jan 26, 2023
Performance isn't a concern but since it's an edge case I think it makes sense to listen for buffer changes and refresh it. We will probably need to append and not replace though
jvesouza commentedon Jan 29, 2023
Another problem encountered is that if I type some text in the accessibility buffer, it is no longer updated. It seems that the problem only happens if the text is typed very close to the last line of the buffer. I tried to reproduce the problem by typing a text at the beginning of the buffer but I couldn't.
To reproduce try the following steps:
In my environment the result of the commands executed in step 4 are not present in the accessibility buffer, only the commands executed in step 1 are shown.
steverep commentedon Mar 6, 2023
Please treat this as a significant bug and not an "edge case". It's currently impossible to review the log of any running task or command until the task completes or the shell prompt is returned. That eliminates access to many common things like:
meganrogge commentedon Mar 6, 2023
Steve Repsher (@steverep) this is a plan item for the March iteration IE we plan to tackle it soon
meganrogge commentedon Mar 7, 2023
Repro:
while sleep 1; do echo "Hi"; donefix #172582
17 remaining items
joyceerhl commentedon Mar 23, 2023
This still repros for me with the latest insiders.
meganrogge commentedon Mar 23, 2023
Joyce Er (@joyceerhl) a gif would be helpful
update.mov
joyceerhl commentedon Mar 23, 2023
terminal.mp4
(in the recording above, at about the 6 second mark I click out of the terminal and back in, and that apparently forces an update)
meganrogge commentedon Mar 23, 2023
can you repro if you start with a new terminal, don't run
clear? i'm trying exactly what you show and not seeing an issue - in the latest insider's (as of 2 hours ago)Tyriar commentedon Mar 23, 2023
I can repro but it's quite difficult, there's probably some race condition where output occurs before the listener is registered. I suggest we action this as part of the _getContent testing/refactoring
meganrogge commentedon Mar 23, 2023
Considering this verified because it works in most cases and we will have a TPI next iteration to test the improvements we plan to make