vscode-edge-devtools icon indicating copy to clipboard operation
vscode-edge-devtools copied to clipboard

Improve "Open in Editor" Error for Incorrect defaultEntrypoint

Open aka1976mb opened this issue 1 month ago • 0 comments

1 Describe the bug 2 When the "Open in Editor" feature needs to resolve a relative URL, it relies on the "Default Entrypoint" setting. this setting is misconfigured, the file path resolution fails, but the resulting error message does not mention th the "Default Entrypoint" setting could be the cause. 3 4 To Reproduce 5 Steps to reproduce the behavior: 6 1. Work with a project where source file URLs are relative (e.g., /main.js). 7 2. In the extension settings, provide an incorrect URL for "Default Entrypoint". 8 3. Launch the debugger and open the Edge DevTools. 9 4. In the DevTools, click a link to a relative source file. 10 5. See the error message. 11 12 Expected behavior 13 The error message should suggest that the user check both their pathMapping and their "Default Entrypoint" setti when a file cannot be opened. 14 15 Current behavior 16 A generic error appears, stating: "Could not open '[sourcePath]' in the editor." 17 18 Additional context 19 Providing a more specific error message that mentions the "Default Entrypoint" setting would make it much easier f users to diagnose and fix this common configuration issue.###

aka1976mb avatar Dec 02 '25 03:12 aka1976mb