You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
If you create a typescript function with arguments on separate lines, they don't get the proper scopes associated with them and end up not getting highlighted correctly by the syntax theme.
Here's an example function that is highlighted correctly (because all of the args on the same line):
Here's an example of that same function but highlighted incorrectly (because of the args on different lines):
In looking at scopes, I see that the html created for the one-liner function declaration's first argument looks like:
Prerequisites
Description
If you create a typescript function with arguments on separate lines, they don't get the proper scopes associated with them and end up not getting highlighted correctly by the syntax theme.
Here's an example function that is highlighted correctly (because all of the args on the same line):
Here's an example of that same function but highlighted incorrectly (because of the args on different lines):
In looking at scopes, I see that the html created for the one-liner function declaration's first argument looks like:
and the first argument for the multi-line arguments looks like:
Which is clearly wrong.
Steps to Reproduce
Expected behavior: Arguments for a function that spans multiple lines should get the right scopes
Actual behavior: Arguments for a function that spans multiple lines are getting variable scopes instead of parameter scopes.
Reproduces how often: 💯
Versions
Atom: 1.27.1
Apm: 1.19.0
OS: Windows 10
The text was updated successfully, but these errors were encountered: