Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the TerminalInstance to only register link providers once. #135419

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

ashgti
Copy link
Contributor

@ashgti ashgti commented Oct 19, 2021

When a task reuses a terminal, the TerminalProcessManager would fire the processReady event each time a task is run, resulting in multiple registrations of the link providers. Re-registering the terminal link providers would cause xterm to trigger multiple overlapping providers on the same line of output, which is not supported by xterm at the moment. The net result is that no external link providers would work for terminals that are reused by tasks.

This PR fixes #134841

When a task reuses a terminal, the TerminalProcessManager would fire the processReady event each time a task is run, resulting in multiple registrations of the link providers. Re-registering the terminal link providers would cause xterm to trigger multiple overlapping providers on the same line of output, which is not supported by xterm at the moment. The net result is that no external link providers would work for terminals that are reused by tasks.
@meganrogge meganrogge added this to the October 2021 milestone Oct 19, 2021
@meganrogge meganrogge merged commit 0db19c1 into microsoft:main Oct 19, 2021
@meganrogge
Copy link
Contributor

works well, thank you!

@gregvanl gregvanl changed the title Updating the TerminalInstance to only reigster link providers once. Updating the TerminalInstance to only register link providers once. Nov 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extension TerminalLinkProvider cannot detect links in reused task terminals
2 participants