Skip to content

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

Closed
TylerLeonhardt wants to merge 1 commit into
PowerShell:masterfrom
TylerLeonhardt:clear-terminal-via-lsp-2
Closed

Alt: Handle clearTerminal message by using vscode clear command#1109
TylerLeonhardt wants to merge 1 commit into
PowerShell:masterfrom
TylerLeonhardt:clear-terminal-via-lsp-2

Conversation

@TylerLeonhardt

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

2 participants