Open
Description
Describe the bug
Here is a small sample repo.
We try to use the sourceRoot to add the sources in a remote location so that we do not need to ship them. However, the mapping:
{"version":3,"file":"string.js","sourceRoot":"http:/raw.githubusercontent.com/SAP/cloud-sdk-js/main/packages/util/src/","sources":["string.ts"],"names":[],"mappings":";......"}
leads to an error because the CWD is added in front of the source route.
To Reproduce
- Checkout repo.
- Run install
- Execute
debug-test.mjs
vialaunch.json
- Step into method -> see the Error
Could not load source '/Users/XXX/source-map-test/node_modules/@sap-cloud-sdk/util/dist/http:/raw.githubusercontent.com/SAP/cloud-sdk-js/main/packages/util/src/string.ts': Unable to retrieve source content.
VS Code Version: 1.72.0