-
Notifications
You must be signed in to change notification settings - Fork 513
Extension doesn't start with when workspace is defined with zero folders #4102
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
Comments
I can open an existing workspace just fine. Can you give us some more details, maybe share your workspace file? |
I can also open an existing workspace just fine. The problem is when opening a file within that workspace, i cannot execute anything. Even simple commands like Get-ExecutionPolicy or Write-Host "test" does not work. Let's assume i have a workspace W1 with a PowerShell file F1. Steps:
Working:
This is an example of workspace file, but is almost empty: Note:
|
Ah ha, I can repro when I set |
I'm glad that you are able to reproduce it. I don't know if is a strange use case or not, but just for curiosity I've checked some of other workspaces I work with and none of them have any folder configured. Ex: Because I don't have the option to create a workspace in Visual Studio Code, what I do to create one is this:
I can add workspace's folder to the workspaces' Like this? |
I have replaced workspace file With this: And it works. |
@opmdsm Can you repro with your prior settings with the latest code, v2022.8.0-preview? I fixed that edge case where |
Hmm... I don't know how to install a preview version... But I prefer to install a release version and anyway I will be off for the next 2 weeks, so I can try then. Thank you very much for help so far. |
It is simply this extension on the marketplace. You can disable the regular one, install this and test, and then uninstall it. |
Prerequisites
Summary
Hi,
Just updated PowerShell extension to v2022.7.2 and all powershell files within an existing workspace does not work anymore.
For instance:
If I open those files separately (open file, without open workspace) the above commands runs successfully.
PowerShell Version
Visual Studio Code Version
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:

PowerShell: RunSelection not found:

Same commands executed with open files one by one:
Command PowerShell: ShowSessionMenu:

PowerShell: RunSelection:

Logs
No response
The text was updated successfully, but these errors were encountered: