Skip to content
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

Bug: Missing source map for variable inside optional?.chaining operator #5424

Open
phil294 opened this issue Aug 24, 2022 · 0 comments
Open

Comments

@phil294
Copy link

phil294 commented Aug 24, 2022

Bug report

Input Code

This shows the source maps the compiler returns for this line. Notice that the variable (old_presences in that case) is not being pointed at.
pic

Expected Behavior

Another source map from old_presences to old_presences

Context

This is not problematic for normal users, but for IntelliSense from the CoffeeSense LSP it would be necessary, as currently go-tos etc. are impossible around optional chaining vars.

That said, the source maps have been amazing otherwise. They are usually highly detailed and accurate so that I could successfully base the entire extension logic on them.

Environment

  • CoffeeScript version: 2.6.1
  • Node.js version: 16.16.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant