Skip to content

Extension doesn't start with when workspace is defined with zero folders #4102

Closed
@opmdsm

Description

@opmdsm

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed 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

Hi,

Just updated PowerShell extension to v2022.7.2 and all powershell files within an existing workspace does not work anymore.

For instance:

  1. Switching from PowerShell x86 and x64 does not work anymore (command PowerShell: ShowSessionMenu not found).
  2. Executing only a selection of commands also does not work (command PowerShell: RunSelection not found).

If I open those files separately (open file, without open workspace) the above commands runs successfully.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.2.5
PSEdition                      Core
GitCommitId                    7.2.5
OS                             Microsoft Windows 10.0.19044
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.69.2
3b889b090b5ad5793f524b5d1d39fda662b96a2a
x64

Extension Version

ms-vscode.powershell@2022.7.2

Steps to Reproduce

Open an existing workspace and try to execute what's described in the issue.

Visuals

Commands executed within an opened workspace:

Command PowerShell: ShowSessionMenu not found:
image

PowerShell: RunSelection not found:
image

Same commands executed with open files one by one:

Command PowerShell: ShowSessionMenu:
image

PowerShell: RunSelection:
image

Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions