-
Notifications
You must be signed in to change notification settings - Fork 36
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
@main
not colored consistently
#272
Comments
Thanks for reporting! Looks like this is an issue with semantic highlight from Metals 🤔 does it happen consistently? I can take a look next week. |
Yes, this happens consistently, usually a call to |
Could you post the whole sample? I don't think I can reproduce it currently. |
@main def main1(): Unit =
println("Hello, world!")
@main def main2(): Unit =
val list = List(1, 2, 3)
print(list) with Some vscode color theme does not enable semantic highlighting by default. You can either turn it on manually in setting or use a default theme like |
Thanks, looks like this happens if a val is in the second main, which is super curious. Do you might opening the issue under scalameta/metals ? That's where the semantic highlight is implemented |
Issue opened here scalameta/metals#6823 |
Thanks! |
Just like the screenshot above, I'm not sure why the same annotation is colored differently.
The first has semantic token
class
, while the second has semantic tokenother
The text was updated successfully, but these errors were encountered: