Skip to content

PowerShell Extension Fails to Execute Expected Behavior in VS Code Terminal #5282

@caraxesthebloodwyrm02

Description

@caraxesthebloodwyrm02

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

⚙️ Summary of Bug Report Template

Purpose:
To help users report bugs in the PowerShell extension for Visual Studio Code with all necessary context for maintainers to triage and resolve the issue.


✅ Prerequisites Checklist:

  • Confirm the issue hasn’t already been reported.
  • Ensure it’s specific to the extension (not standalone PowerShell).
  • Use the latest version of VS Code and the extension.
  • Review troubleshooting and security reporting guides.

📝 Required Fields:

  • Title: Clear and descriptive.
  • Summary: What you expected vs. what actually happened.
  • PowerShell Version: Output from $PSVersionTable and $Host.
  • VS Code Version: Output from code --version.
  • Extension Version: Output from code --list-extensions --show-versions.

🔁 Steps to Reproduce:

  • Provide a reproducible example, sample code, or stack trace.

📸 Visuals & Logs:

  • Upload screenshots, animations, or logs to illustrate the issue.

🏷️ Metadata:

  • Labels: Issue-Bug, Needs: Triage
  • No default assignee, project, or milestone.

📜 Footer Reminder:

If you’re drafting a report, I can help you phrase the summary or format the version outputs. Just say the word.

PowerShell Version

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

Visual Studio Code Version

1.104.2
x64

Extension Version

Steps to Reproduce

  1. Open Visual Studio Code.
  2. Launch the PowerShell extension terminal.
  3. Run the following script:
    Get-Process | Where-Object { $_.CPU -gt 100 }
    
    

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