Skip to content

'Run selection' (F8) does not work as expected after upgrading to 2022.6.1 #4052

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
5 of 6 tasks
oloflindberg opened this issue Jun 28, 2022 · 1 comment
Closed
5 of 6 tasks
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!

Comments

@oloflindberg
Copy link

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

  1. Select a few lines of code and hit F8 to execute the selection, e.g.:
$foo = "bar"
Write-Output "Foo is $foo"
  1. 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

Animation

Logs

No response

@oloflindberg oloflindberg added the Issue-Bug A bug to squash. label Jun 28, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Jun 28, 2022
@oloflindberg oloflindberg changed the title 'Run selection' (F8) repeats my lines after upgrading to 2022.6.1 'Run selection' (F8) does not work as expected after upgrading to 2022.6.1 Jun 28, 2022
@oloflindberg
Copy link
Author

Sorry, duplicate of #4041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!
Projects
None yet
Development

No branches or pull requests

1 participant