Skip to content

Actions launched from a server ready action in compound launch configs don't honor the stopAll flag #163124

@samamorgan

Description

@samamorgan

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

  • VS Code Version: 1.71.2
  • OS Version: Windows_NT x64 10.0.19044

Steps to Reproduce:

  1. Create a compound launch configuration with "stopAll": true where one of the configs includes serverReadyAction
  2. Launch a debug session with this configuration
  3. Press the stop button
    • Expected: All sessions stop
    • Actual: The sessions enumerated in the compound configurations stop, but the session launched under serverReadyAction does not. The user must click stop twice for all sessions to cease.

My launch config:

{
  "version": "0.2.0",
  "compounds": [
    {
      "name": "Debug app",
      "configurations": ["Django", "Vite"],
      "stopAll": true
    }
  ],
  "configurations": [
    {
      "name": "Django",
      "type": "python",
      "request": "launch",
      "program": "${workspaceFolder}/manage.py",
      "args": ["runserver"],
      "django": true,
      "justMyCode": true,
      "presentation": { "hidden": true },
      "cwd": "${workspaceFolder}",
      "serverReadyAction": {
        "pattern": ".*(https?:\\/\\/\\S+:[0-9]+\\/?).*",
        "uriFormat": "%s",
        "action": "debugWithChrome"
      }
    },
    {
      "name": "Vite",
      "type": "node",
      "request": "launch",
      "runtimeExecutable": "npm",
      "runtimeArgs": ["run", "dev"],
      "presentation": { "hidden": true },
      "cwd": "${workspaceFolder}"
    }
  ]
}

Video demonstrating the behavior:

sampleapp.-.Visual.Studio.Code.2022-10-09.09-14-25.mp4

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insidersverification-foundIssue verification failedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions