coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

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

Open phil294 opened this issue 3 years ago • 0 comments

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

phil294 avatar Aug 24 '22 17:08 phil294