Skip to content

Stopping a script while being prompted for mandatory parameter input crashes integrated shell #617

Closed
@dotps1

Description

@dotps1

System Details

  • Operating system name and version: 10.0.14393
  • VS Code version: 1.10.2
  • PowerShell extension version: 0.11.0
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.14393.953
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.953
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

create a basic script with this param block:

param (
    [Parameter(
        Mandatory = $true
    )
    [String[]]
    $MandatoryParameter
)

execute the script with F5, then hit the Stop to stop debugging, the integrated shell is still looking for input. hit enter, and the shell crashes, and cannot get reopend with out starting a new instance of code.

hitting F5 again causes this to pop up:
image

Attached Logs

let me know if you cannot recreate and ill get some logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions