Skip to content

Pressing enter does not cause the prompt to be redisplayed #774

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

Closed
PowerSchill opened this issue May 22, 2017 · 1 comment
Closed

Pressing enter does not cause the prompt to be redisplayed #774

PowerSchill opened this issue May 22, 2017 · 1 comment
Milestone

Comments

@PowerSchill
Copy link
Contributor

PowerSchill commented May 22, 2017

System Details

  • Windows 10 Build 10586
  • VS Code version: 1.13.0
  • PowerShell extension version: 1.1.0

Name Value


PSVersion 5.0.10586.672
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.672
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

When I hit enter on a blank line in the integrated console is does not redisplay the prompt. Instead it waits for more typing. See screencast at https://www.screencast.com/t/2KmLaAeAVmna

@daviwil daviwil changed the title Pressing enter does not cause the prompt to be redisplayed. Pressing enter does not cause the prompt to be redisplayed May 22, 2017
@daviwil daviwil added this to the 1.2.0 milestone May 22, 2017
@daviwil
Copy link
Contributor

daviwil commented May 22, 2017

Thanks Mark!

daviwil added a commit to daviwil/PowerShellEditorServices that referenced this issue May 30, 2017
This change fixes an issue where the user's custom prompt function is
only written out fully (including any Write-Host or Write-Output
behavior) the first time the prompt appears after a command is executed.
This is because the return value of the prompt function was being cached
and re-printed each time the user hit Enter without running a new
command.

Resolves PowerShell/vscode-powershell#774.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants