Skip to content

VSCODE v1.59.1 - POWERSHELL - F5 and F8 not working as intented #3515

@akselbork

Description

@akselbork

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 have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

When choosing a line in a PowerShell script and pressing F8, nothing happens.
Then by moving the focus to the terminal and pressing "Enter" the line will be executed, at becomes visible in the terminal.

This is the same for F5

So every execution has to be made i "double steps"

No problem if the command is entered directly into the terminal

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.1023
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1023
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.59.1
3866c3553be8b268c8a7f8c0482c0c0177aa8bfa
x64

Extension Version

ms-vscode.powershell@2021.5.1
ironmansoftware.powershell-universal@2.1.1
justin-grote.powershell-extension-pack@0.0.5        
ms-vscode.powershell@2021.8.0
ms-vscode.powershell-preview@2021.8.1
TylerLeonhardt.vscode-inline-values-powershell@0.0.5

Steps to Reproduce

  1. Open PS1 file
  2. Select line
  3. Press F8
    4

Visuals

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions