Description
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
Since specifically version 2022.7.2 the Powershell Extention is having some issues on my end. My 2 workstations (sharing the same account ofc) getting the following errors:
When pressing F8: command 'PowerShell.RunSelection' not found
When pressing F5:
Trying to upload a bug from within VSCode:
Found some similar issues from the past, e.g.: #2526
Also not getting logs in the Logs folder, when setting the log level to diagnostic.
Version 2022.6.3 is still working fine. Works with Powershell 7.2.5 and 7.2.6 & vscode 1.70/1.70.1.
Reinstalling VSCode and/or the PowerShell extension didn't solve the issue.
My debug profile contains this for PowerShell:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
}
]
}
PowerShell Version
Name Value
---- -----
PSVersion 7.2.6
PSEdition Core
GitCommitId 7.2.6
OS Microsoft Windows 10.0.19043
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.70.1
6d9b74a70ca9c7733b29f0456fd8195364076dda
x64
Extension Version
ms-vscode.powershell@2022.7.2
Steps to Reproduce
Any piece of powershell code will trigger the issue when pressing F5 or F8 for a single row in a new
$token = Read-Host -Prompt "Enter Authentication token"
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
}
]
}
Visuals
No response
Logs
None available.