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

Alt: Handle clearTerminal message by using vscode clear command #1109

Conversation

TylerLeonhardt
Copy link
Member

This fixes an "issue" that comes up a lot that when you Clear-Host and are still able to scroll up.

This is an alt of #1108

Instead, this doesn't use a vscode setting and allows the user to do -All to clear the scrollback buffer as well.

Pairs with: PowerShell/vscode-powershell#2318

@TylerLeonhardt
Copy link
Member Author

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
           

Complexity increasing per file
==============================
- src/PowerShellEditorServices/Services/PowerShellContext/Extensions/EditorTerminal.cs  1
         

See the complete overview on Codacy

)

__clearhost
if ($All.IsPresent) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a good reason to include .IsPresent?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think strict mode requires this.

@TylerLeonhardt
Copy link
Member Author

went the other way.

@TylerLeonhardt TylerLeonhardt deleted the clear-terminal-via-lsp-2 branch November 21, 2019 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants