microsoft / microsoft/vscode-edge-devtools

"Microsoft Edge Tools: Configure launch.json file" action generates invalid launch.json configs

Open
#3,023 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug tracked
Dominant language
TypeScript
Stars
827
Forks
358
Avg merge
20h 32m
Merged PRs (30d)
10

Description

Environment (please complete the following information):

  • OS (e.g., Windows 10): Windows 11 24h2
  • Extension version (e.g., 1.2.3): 2.1.8

Describe the bug:
The default launch.json configs generated by the Edge DevTools extension are invalid and do not show up in the launch config picker.

Repro steps:

  1. ctrl-shift-p
  2. run the "Microsoft Edge Tools: Configure launch.json file" action
  3. Observe that it generates a launch.json which contains yellow squigglies referencing an invalid "type": "pwa-msedge" similar to:
    {
      "type": "pwa-msedge",
      "name": "Launch Microsoft Edge",
      "request": "launch",
      "runtimeArgs": [
        "--remote-debugging-port=9222"
      ],
      "url": "http://localhost:8080",
      "presentation": {
        "hidden": true
      }
    }
  1. Observe that the "Launch Microsoft Edge" config is not shown in the run and debug menu's launch configuration dropdown.

Expected behavior:
A valid launch.json file would be generated

Additional context:
Updating the launch config to the following worked:

{
            "type": "vscode-edge-devtools.debug",
            "request": "launch",
            "name": "Launch Microsoft Edge and open the Edge DevTools",
            "url": "http://localhost:8080",
            "webRoot": "${workspaceFolder}"
 }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the “Microsoft Edge Tools: Configure launch.json file” action and the launch.json template it generates. Compare the generated configuration with the working vscode-edge-devtools.debug example, then verify in VS Code that the generated file has no validation warnings and that “Launch Microsoft Edge” appears in the launch configuration dropdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.