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
In CoffeeScript classes, when accessing class members with the @ shorthand, the suggestion is missing the last character.
If I recall correctly, this was working properly in ST3.
I don't know tmLanguage syntax but it looks like the 2nd and 3rd capture groups in the unwieldy regex at the bottom are being assigned the name entity.name.function.coffee which narrowed down my blind fiddling efforts.
Workaround (warning: no clue why or how this works 😅)
I found out that deleting the following part seems to resolve to issue ...
although I'm not sure if it fixes an issue with the syntax file or with ST4 itself (I don't recall facing the issue in ST3, even though I was using the same syntax file).
I can't see any immediate impact in terms of syntax coloring (will post any updates here), and now I get correct autocomplete for function names.
If anyone understands why the edit above works please let me know. 😅
Activity
gtarawneh commentedon Jul 6, 2022
I'm facing the same issue (with all functions actually, not just class methods).
After a bit of digging into my
CoffeeScript.tmLanguage
I narrowed it down to this section ...I don't know tmLanguage syntax but it looks like the 2nd and 3rd capture groups in the unwieldy regex at the bottom are being assigned the name
entity.name.function.coffee
which narrowed down my blind fiddling efforts.Workaround (warning: no clue why or how this works 😅)
I found out that deleting the following part seems to resolve to issue ...
although I'm not sure if it fixes an issue with the syntax file or with ST4 itself (I don't recall facing the issue in ST3, even though I was using the same syntax file).
I can't see any immediate impact in terms of syntax coloring (will post any updates here), and now I get correct autocomplete for function names.
If anyone understands why the edit above works please let me know. 😅