-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to preview named import for ts with sourcemap #1383
Comments
This is a result of how TS emits its |
Thanks for the quick reply, I'll look into the source map. |
I've re-investigated and this seems to be something the debugger can fix. As a simple test, I modified https://github.com/microsoft/vscode-js-debug/blob/main/src/common/sourceMaps/renameProvider.ts#L21 to |
The identifierRe is pretty strict because the sourcemap only gives us where a name starts, not the length of it. But I think including |
Describe the bug
When debugging ts files with source maps, named imported variables are not previewed properly.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/liuxingbaoyu/jsdebug-sourcemap-bug
yarn / npm i
src\util\scope.ts
L18Launch Program
BIND_SCOPE_LEXICAL
**VS Code Version: 1.71.0 (user setup)
Additional context


The text was updated successfully, but these errors were encountered: