Prerequisites
Summary
Summary
I am investigating an unexpected behavior involving the PowerShell extension in Visual Studio Code.
The issue is being observed in a Windows environment using PowerShell 7.6.6, VS Code 1.135.0 (x64), and PowerShell extension 2025.4.0.
I am providing the complete environment information and reproduction details below so the behavior can be diagnosed and the root cause can be isolated.
No assumptions are being made about whether the root cause is PowerShell, VS Code, the PowerShell extension, or the project environment.
PowerShell Version
Name Value
---- -----
PSVersion 7.6.6
PSEdition Core
GitCommitId 7.6.6
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0.}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2025.4.0
Steps to Reproduce
Steps to Reproduce
- Start Visual Studio Code 1.135.0 (x64).
- Open the affected PowerShell project/workspace.
- Ensure the PowerShell extension
ms-vscode.powershell version 2025.4.0 is enabled.
- Start a PowerShell session using PowerShell 7.6.6.
- Execute the command that triggers the problem.
- Observe the resulting behavior.
- Repeat the operation in a new VS Code window/session to determine whether the behavior is persistent.
- Compare the result with the same command executed directly from a standalone PowerShell 7.6.6 terminal.
Visuals
Actual Behavior
The observed behavior is:
[DESCRIBE THE EXACT ERROR OR UNEXPECTED RESULT HERE]
Observed error message:
[PASTE THE EXACT ERROR MESSAGE HERE]
### Logs
## Logs
### PowerShell Environment
```powershell
$PSVersionTable | Format-List *
Prerequisites
Summary
Summary
I am investigating an unexpected behavior involving the PowerShell extension in Visual Studio Code.
The issue is being observed in a Windows environment using PowerShell 7.6.6, VS Code 1.135.0 (x64), and PowerShell extension 2025.4.0.
I am providing the complete environment information and reproduction details below so the behavior can be diagnosed and the root cause can be isolated.
No assumptions are being made about whether the root cause is PowerShell, VS Code, the PowerShell extension, or the project environment.
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2025.4.0Steps to Reproduce
Steps to Reproduce
ms-vscode.powershellversion2025.4.0is enabled.Visuals
Actual Behavior
The observed behavior is:
[DESCRIBE THE EXACT ERROR OR UNEXPECTED RESULT HERE]
Observed error message: