You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jasonwilliams
changed the title
Top level folder gets truncated when working in a monorepo
Top level folder gets truncated when JS Project is not the root folder
Dec 14, 2020
Thanks for the issue. This is because the sourceMapPathOverrides are applied to the webpack:/// path. The relevant default here is 'webpack://?:*/*': ${cwd}/*`, so the debugger reports that is applied:
"SourceMap: mapping webpack:///./pages/index.tsx => e:\Downloads\nextjs9-typescript-server-vscode-example/./pages/index.tsx, via sourceMapPathOverrides entry - /^webpack:\/\/.?\/(.?)$/i"
This bypasses the localRoot/remoteRoot. The solution here is to set the "cwd": "${workspaceFolder}/webapp".
I think it would make sense to default the cwd to the localRoot, if the former is unset and the latter is.
Describe the bug
When the JavaScript project is not at the top level the debugger doesn't match the paths well.
To Reproduce
Steps to reproduce the behavior:
Screenshot
![image](https://user-images.githubusercontent.com/936006/102121593-1bc83e80-3e3c-11eb-90a2-9b1164b5b7da.png)
In this screenshot
webapp
is lost (on the second bullet point), causing the matcher not to find the fileVS Code Version: 1.53
Debugger Version Nightly (v2020.12.917)
The text was updated successfully, but these errors were encountered: