fix: improve terminal marker placements on windows#209136
Merged
Tyriar merged 20 commits intomicrosoft:mainfrom Apr 19, 2024
cpendery:fix/improve-marker-placements
Merged
fix: improve terminal marker placements on windows#209136Tyriar merged 20 commits intomicrosoft:mainfrom cpendery:fix/improve-marker-placements
Tyriar merged 20 commits intomicrosoft:mainfrom
cpendery:fix/improve-marker-placements
Conversation
Signed-off-by: Chapman Pendery <[email protected]>
Tyriar
requested changes
Apr 1, 2024
src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts
Show resolved
Hide resolved
src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts
Show resolved
Hide resolved
Tyriar
requested changes
Apr 16, 2024
src/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
Show resolved
Hide resolved
Signed-off-by: Chapman Pendery <[email protected]>
Signed-off-by: Chapman Pendery <[email protected]>
Signed-off-by: Chapman Pendery <[email protected]>
Signed-off-by: Chapman Pendery <[email protected]>
Member
Author
|
I fixed the stray markers, avoid adjusting the prompt start if the text is wrapped, and 1-2 small issues I found testing. Here are some new demo videos No Adjust When Wrappedfixed_bashNoAdjustOnWrap.mp4Multi-line Git Bash Adjustfixed_bashInputAdjust.mp4Multi-line Pwsh Adjustfixed_pwshMutliInputAdjust.mp4Single-line Pwsh Adjustfixed_pwshInputAdjust.mp4 |
Signed-off-by: Chapman Pendery <[email protected]>
Member
Member
Author
Signed-off-by: Chapman Pendery <[email protected]>
Signed-off-by: Chapman Pendery <[email protected]>
Member
Author
|
I think I fixed it, there were small bugs. It's working for git bash (starship, default multiline, singleline) & pwsh (starship, oh-my-posh [json theme], & default)
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Member
|
Oh I was testing an old version 🤦 |
Tyriar
approved these changes
Apr 19, 2024
lramos15
approved these changes
Apr 19, 2024
Tyriar
added a commit
that referenced
this pull request
Apr 21, 2024
Revert "Merge pull request #209136 from cpendery/fix/improve-marker-p…
sergioengineer
pushed a commit
to sergioengineer/VimSCode
that referenced
this pull request
Apr 23, 2024
…placements fix: improve terminal marker placements on windows
sergioengineer
pushed a commit
to sergioengineer/VimSCode
that referenced
this pull request
Apr 23, 2024
sergioengineer
pushed a commit
to sergioengineer/VimSCode
that referenced
this pull request
Apr 23, 2024
Revert "Merge pull request microsoft#209136 from cpendery/fix/improve-marker-p…
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR attempts to approve terminal marker placements on Windows in 2 ways.
note: while this will result in the starting line of a multiline prompt getting captured in the output, it improves the sticky scroll behavior significantly.
Sticky Scroll Pre Fix
stickyScrollBad.mp4
Sticky Scroll Post Fix
stickyScrollFix.mp4
Input Prompt Adjustment Example 1
markerInputCorrection2.mp4
Input Prompt Adjustment Example 2
markerInputCorrection.mp4
Related to #143769 & #209003