Skip to content

Support source map files with sections ('indexed maps') #1260

@ashgti

Description

@ashgti

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Using a indexed source map like the kind described in https://github.com/mozilla/source-map/blob/7a263408de1b60e60b6220ca3e36d9b3e4aa047d/lib/source-map-consumer.js#L673-L722 or those produced by the closure-compiler when producing bundled output the JS debugger fails to parse the sourcemap.

https://sourcemaps.info/spec.html#h.535es3xeprgt is the spec for indexed bundles.

When you try to use one of these, this assert will be tripped up: https://github.com/microsoft/vscode-js-debug/blob/main/src/common/sourceMaps/sourceMapFactory.ts#L81 due to the not checking for sections data.

Describe the feature you'd like
A clear and concise description of what you want to happen.

These types of source maps should be supported.

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorfeature-requestRequest for new features or functionalityhelp welcomeIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverification-steps-neededSteps to verify are needed for verificationverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions