Closed jwoertink closed 5 months ago
I wasn't able to replicate this for some reason. What theme are you using in VSCode?
I've switched themes, and I'm still getting this. Here's some more info:
The theme I'm using now is "Bearded Theme Black and Emerald".
The specific file in the screenshots is actually from Lucky
https://github.com/luckyframework/lucky_cli/blob/main/src/generators/web.cr
another interesting issue here is that if I create a different class method, this doesn't happen... seems to be just that one?
Very strange :joy:
Ah thank you! I figured it out. The end
condition for methods with arguments didn't account for return parameters, and so it was capturing everything afterwards. https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/c990acde25a020e910ca1092991e62289ceaa6c9/syntaxes/crystal.json#L291C6-L291C6. With a small change this should be fixed in the next release!
Woo hoo! Good find :+1:
This looks to be fixed in the v0.9.0-alpha release.
Notice in this screenshot, the methods being called in the
run
instance method are currently white, and the classself.run
method has no return typeThen when I add a return type to the class
self.run
method, all of the calls in the instance run method turn blue