Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

First execution of PowerShell script changes context into debugger #283

Closed
Labels
Feature: VS CodeRequest to use or implement a VS Code feature.
@pcgeek86

Description

System Details

  • Operating system name and version:
  • VS Code version: 1.4.0
  • PowerShell extension version: 0.7.2
  • Output from $PSVersionTable:
PS C:\Users\TrevorSullivan> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.103
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.103
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

When you open VSCode and run a PowerShell script, for the first time in the new session, the PowerShell Extension switches VSCode from the Explorer context, into the Debugging context. Subsequent executions do not do this.

Reproduction Steps

  • Open VSCode
  • Open a project with a PowerShell script (in my case, a Pester test script)
  • Hit F5 to run the script
  • NOTICE: VSCode changes into debugging context, and script runs/exits
  • Go back to Explorer context in VSCode (CTRL + SHIFT + E)
  • Hit F5 to run the script again
  • NOTICE: VSCode doesn't change into the debugger context

Cheers,
Trevor Sullivan
Docker Captain
Microsoft MVP: Cloud & Data Center Management
https://trevorsullivan.net
https://twitter.com/pcgeek86

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: VS CodeRequest to use or implement a VS Code feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /