Skip to content

Pester extension causes vscode to always open the PowerShell extension window even on non-PowerShell projects #284

@markdall

Description

@markdall

My apologies (seriously) if this is a dupe, my search-fu is weak this morning - I did try. I'm running the latest released build of Pester.

Repro steps:

  1. On Windows 11, install vscode and Pester along with whatever it depends on.
  2. Open a pester project and make sure you can run tests.
  3. Close vscode.
  4. Open vscode and then open a folder that only contains Python scripts - no PowerShell whatsoever.

Expected results: vscode opens and just sits there.

Actual results: vscode opens along with the PowerShell Extension Window.

Bonus: You can open a folder full of .txt files and see the same behavior.

Workaround: Disable the Pester extension globally and only enable it if you're writing Pester tests in that project.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions