Skip to content

regression: Task with pickstring executes eventhough escape button is pressed #248716

@an-dr-eas-k

Description

@an-dr-eas-k

I use a pickString input variable in my launch config, and since a recent vscode update, my common workflow failes. Whenever I try to abort the launch by pressing the ESC key with an opened pickString dialog, it still continues to launch passing the value ${input:runMode} to the launch command.

I use this in with the powershell extension in the script block, but it reproduces without extensions with the node-terminal launch type.

This is similar to this bug #102931

Please take a look and eventually fix or help.

Does this issue occur when all extensions are disabled?: Yes

Version: 1.100.0
Commit: 19e0f9e
Date: 2025-05-07T12:48:53.763Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. create launch.json file with input item of type pickString e.g.
        "inputs": [
         {
             "type": "pickString",
             "id": "runMode",
             "description": "Choose",
             "options": [
                 "item 1",
                 "item 2"
             ],
         }
    
    
  2. add launch entry, e.g.
    "configurations": [
         {
             "name": "myConfig",
             "type": "node-terminal",
             "request": "launch",
             "cwd": "${workspaceFolder}",
             "command": "echo ${input:runMode}",
         },
    
  3. Launch myConfig
  4. wait for the pickstring dropdown
  5. press ESC
  6. launch of myConfig continues, nevertheless no item was choosen.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions