Closed
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
After upgrading to 2022.6.1, I'm seeing a changed behavior when executing selected lines. Works fine in 2022.5.1.
Given the following two lines..
$foo = "bar"
Write-Output "Foo is $foo"
..I expect the output in the terminal to be
C:\temp> $foo = "bar"
Write-Output "Foo is $foo"
Foo is bar
instead I get:
C:\temp> $foo = "bar"
Write-Output "Foo is $foo"
Foo is bar
C:\temp> $foo = "bar"
>> Write-Output "Foo is $foo"
>>
PowerShell Version
Name Value
---- -----
PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visual Studio Code Version
1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
x64
Extension Version
ms-vscode.powershell@2022.6.1
Steps to Reproduce
- Select a few lines of code and hit F8 to execute the selection, e.g.:
$foo = "bar"
Write-Output "Foo is $foo"
- The lines execute, but they are repeated again and waiting for input:
C:\temp> $foo = "bar"
Write-Output "Foo is $foo"
Foo is bar
C:\temp> $foo = "bar"
>> Write-Output "Foo is $foo"
>>
Visuals
Logs
No response