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 coloring in multiple variable declarations #7012

Open
du33169 opened this issue Dec 6, 2024 · 2 comments
Open

Inconsistent coloring in multiple variable declarations #7012

du33169 opened this issue Dec 6, 2024 · 2 comments
Assignees
Labels
bug Something that is making a piece of functionality unusable semantic-highlight upstream-fix-needed Waiting on a fix upstream

Comments

@du33169
Copy link

du33169 commented Dec 6, 2024

Describe the bug

See the screenshot below.

To Reproduce

Steps to reproduce the behavior:

  1. Install Scala (Metals) Extension
  2. New Scala file
  3. Enter the code class Foo {val a,b,c=0}
  4. See error

Expected behavior

consistent coloring

Screenshots

screenshot

Installation:

  • Operating system: Linux
  • VSCode version: 1.95.3
  • VSCode extension version: v1.43.0
  • Metals version: 1.4.1

Additional context

If disable Metals and enable Scala Sytax (official) only, the coloring is correct (They've already fixed the same issue):

screenshot2

Search terms

@tgodzik
Copy link
Contributor

tgodzik commented Dec 6, 2024

Thanks for reporting! This looks like an issue with semantic highlighting

@tgodzik tgodzik transferred this issue from scalameta/metals-vscode Dec 6, 2024
@tgodzik tgodzik added bug Something that is making a piece of functionality unusable semantic-highlight labels Dec 6, 2024
@tgodzik tgodzik moved this from Triage to To do in Metals Issue Board Dec 6, 2024
@kasiaMarek kasiaMarek self-assigned this Dec 11, 2024
@kasiaMarek kasiaMarek added the upstream-fix-needed Waiting on a fix upstream label Dec 11, 2024
@kasiaMarek
Copy link
Contributor

kasiaMarek commented Dec 12, 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 semantic-highlight upstream-fix-needed Waiting on a fix upstream
Projects
Status: In progress
Development

No branches or pull requests

3 participants