fisheva / Eva-Theme

A comfortable and semantic theme.
https://marketplace.visualstudio.com/items?itemName=fisheva.eva-theme
MIT License
452 stars 38 forks source link

Problem with colors of "const", "let" and "var" #72

Closed heorhii-aksiuk closed 2 years ago

heorhii-aksiuk commented 2 years ago

Why I have problem with colors of "const" and "var"? They are white, but must be purple. v1.7.7

Screenshot

image

fisheva commented 2 years ago

Could you please copy your complete code here? For me to find out the reason. Thanks!

heorhii-aksiuk commented 2 years ago

The problem is there regardless of my code. I tried opening other files, projects, restarting VSCode and computer, installing previous versions of the theme. Other themes continue to highlight these keywords without any problems.

heorhii-aksiuk commented 2 years ago

Can I fix this locally using settings?

fisheva commented 2 years ago

These words are not showing wrong everywhere, I need to restore your code, see what's wrong with their scope values. In your screenshot, I can't see the full code.

Of cause, you can fix that in local settings, but it is a little complicated. Please copy your code and let me see, if it is a common problem, let me fix it. Thanks!

heorhii-aksiuk commented 2 years ago

Okey, here is example of simple code

const a = 5;
let b = 10;

function example(a, b) {
  var c = 15;
  return a + b * c;
}

example(a, b);

Screen of Eva Dark theme(and all 6 Eva themes give same result) image

Screen of One Dark Theme(and all of other themes work right) image

I really love your theme, I spent about 10 hours and tried dozens of themes to find it, no other theme suits me, and I would really like to solve this problem. Hope for help

heorhii-aksiuk commented 2 years ago

And it's work when I change .js to .ts ! image

heorhii-aksiuk commented 2 years ago

Found the source of the problem😀 . Extensions that change the default settings for a language. image image

fisheva commented 2 years ago

Yes, someone has raised an issue because of this plugin before.