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

Under conpty, shell integration decorations can be incorrectly positioned #153476

Closed
alexr00 opened this issue Jun 28, 2022 · 8 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *out-of-scope Posted issue is not in scope of VS Code terminal-conpty Integrated terminal issues related to the ConPTY backend terminal-shell-integration Shell integration, command decorations, etc. terminal-shell-pwsh An issue in the terminal specific to PowerShell upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream windows VS Code on Windows issues

Comments

@alexr00
Copy link
Member

alexr00 commented Jun 28, 2022

Testing #153365

  1. Open microsoft/vscode
  2. Start the default VS Code build task
  3. Make some errors
  4. The problem decorations are one line too high:

image


Update from @Tyriar: This tracks the common set of issues that come from conpty doing its own "rendering" and not guaranteeing the position of the shell integration sequences. Upstream issue: microsoft/terminal#8698

@meganrogge
Copy link
Contributor

on windows?

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Jun 28, 2022
@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2022

Yep that's Windows, this was by designed to put it on the beginsPattern right?

@meganrogge
Copy link
Contributor

on mac

Screen Shot 2022-06-28 at 12 31 10 PM

@alexr00
Copy link
Member Author

alexr00 commented Jun 29, 2022

Yes, it's Windows.

@Tyriar
Copy link
Member

Tyriar commented Jun 29, 2022

This seems to be working for me:

image

I did see some weird behavior when resizing the width of the terminal earlier, that's probably too risky to fix this late in endgame.

@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug windows VS Code on Windows issues terminal-conpty Integrated terminal issues related to the ConPTY backend terminal-shell-integration Shell integration, command decorations, etc. terminal-shell-pwsh An issue in the terminal specific to PowerShell and removed info-needed Issue requires more information from poster labels Jun 29, 2022
@meganrogge meganrogge added this to the July 2022 milestone Jun 29, 2022
@Tyriar Tyriar modified the milestones: July 2022, Backlog Jul 11, 2022
@Tyriar
Copy link
Member

Tyriar commented Aug 3, 2022

More info on this: When conpty supports "passthrough" of the OSC 133/633 sequences this should be fixed. Currently we have a bunch of heuristics that try to fix up incorrectly places sequences as the position isn't guaranteed to be correct since they are not output during the render phase. Upstream issue: microsoft/terminal#8698

One idea we could do is more aggressively reading the buffer and re-positioning the decorations, I'm a little worried about the performance overhead of doing that though.

@Tyriar Tyriar added upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream labels Aug 3, 2022
@meganrogge meganrogge changed the title Problem decorations are off by one line under conpty, shell integration decorations can be incorrectly positioned Nov 7, 2022
@meganrogge meganrogge removed their assignment Dec 5, 2022
@Tyriar Tyriar changed the title under conpty, shell integration decorations can be incorrectly positioned Under conpty, shell integration decorations can be incorrectly positioned Dec 7, 2022
@tisilent
Copy link
Contributor

tisilent commented Mar 9, 2023

企业微信截图_1678372124125
Same issue?

@Tyriar
Copy link
Member

Tyriar commented Dec 5, 2023

Closing this as out of scope as this will eventually get fixed in later versions if Windows and it's fairly low impact.

@Tyriar Tyriar closed this as completed Dec 5, 2023
@Tyriar Tyriar added the *out-of-scope Posted issue is not in scope of VS Code label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug *out-of-scope Posted issue is not in scope of VS Code terminal-conpty Integrated terminal issues related to the ConPTY backend terminal-shell-integration Shell integration, command decorations, etc. terminal-shell-pwsh An issue in the terminal specific to PowerShell upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

5 participants