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

Polish command navigation for "empty commands" for non-partial terminal capabilities #155551

Merged
merged 5 commits into from Sep 2, 2022

Conversation

MonadChains
Copy link
Contributor

This PR fixes #155543

This PR implements the skipping of empty commands in the case of the terminal with non-partial command detection capabilities. The result is:

example_ignore_blank_lines

However in the case of partial command detection capabilities (i.e. IPartialCommandDetectionCapability ) I was not able to implement it. I don't fully understand when terminals with partial detection capabilities occurs, so, I couldn't trigger and investigate them.

ProKashif
ProKashif previously approved these changes Jul 19, 2022
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial command detection is what's used when shell integration is disabled, so this is correct in that it treats them all the same.

@MonadChains
Copy link
Contributor Author

MonadChains commented Jul 24, 2022

Hi @Tyriar, while working on this PR I notice a possible bug that happens when during selection a boundary of the terminal is reached. I've opened a separate issue for this bug (issue #156070) with a PR associated to fix it.

@MonadChains
Copy link
Contributor Author

Hi @Tyriar, I have improved the behaviour of the skipping empty commands.
New behaviour is the following:
polished-behaviour

@Tyriar Tyriar marked this pull request as ready for review September 2, 2022 11:49
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well, thanks @MonadChains!

@Tyriar Tyriar added this to the September 2022 milestone Sep 2, 2022
@Tyriar Tyriar merged commit 2863ec9 into microsoft:main Sep 2, 2022
@MonadChains MonadChains deleted the issue/155543 branch September 4, 2022 12:58
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2022
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.

Polish command navigation for "empty commands"
5 participants