microsoft / microsoft/vscode-edge-devtools

Improve "Open in Editor" Error for Missing pathMapping

Open
#3,873 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
828
Forks
359
Avg merge
20h 32m
Merged PRs (30d)
10

Description

1 Describe the bug
2 When using the "Open in Editor" feature, if a file's URL from the DevTools doesn't map to a local file due to a
missing or incorrect pathMapping configuration in launch.json, the error message is generic. It doesn't guide
the user on how to resolve the issue.
3
4 To Reproduce
5 Steps to reproduce the behavior:
6 1. Configure a project with an incorrect pathMapping in launch.json (e.g., map "/" to the wrong directory).
7 2. Launch the debugger and open the Edge DevTools.
8 3. In the DevTools "Elements" or "Sources" panel, click a link to a source file.
9 4. See the error message.
10
11 Expected behavior
12 The error message should be actionable, suggesting that the user inspect their pathMapping configuration in
launch.json.
13
14 Current behavior
15 A generic error appears, stating: "Could not open document. No workspace mapping was found for '[url]'."
16
17 Additional context
18 Improving this error message would significantly help users troubleshoot their configuration and reduce friction
when using the "Open in Editor" feature.

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 locating the current "Could not open document. No workspace mapping was found" error in the Open in Editor flow. Reproduce it with an incorrect pathMapping in launch.json, then make the message direct users to inspect that configuration and verify the updated wording through the same scenario.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.