Skip to content
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

Inconsistent Semantic Highlighting for Annotations #6823

Open
NoahELE opened this issue Oct 7, 2024 · 0 comments
Open

Inconsistent Semantic Highlighting for Annotations #6823

NoahELE opened this issue Oct 7, 2024 · 0 comments
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3

Comments

@NoahELE
Copy link

NoahELE commented Oct 7, 2024

Describe the bug

@main def main1(): Unit =
  val array = Array(1, 2, 3)
  println(array)

@main def main2(): Unit =
  val list = List(1, 2, 3)
  println(list)

The @main annotations are colored differently when semantic highlighting is enabled. The color seems to be affected by the statements inside the function.

image

Expected behavior

The semantic highlight of the same token should be the same.

Operating system

Windows

Editor/Extension

VS Code

Version of Metals

v1.3.5

Extra context or search terms

No response

@tgodzik tgodzik added the bug Something that is making a piece of functionality unusable label Oct 7, 2024
@tgodzik tgodzik added Scala 3 Generic ticket relating to Scala 3 presentation-compiler Something relating to the presentation compiler labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3
Projects
Status: Triage
Development

No branches or pull requests

2 participants