atomiks / moonlight-vscode-theme

A VS Code theme with bubblegum colors on a moonlit background

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong syntax highlighting color

SrAnthony opened this issue · comments

Screenshot from 2020-03-12 09-09-01

I just removed the ~/.vscode folder and install only the moonlight theme, still occurs.

Have you got the experimental "semantic syntax highlighting" (or similar) turned on?

Didn't know about it...
Setting editor.semanticHighlighting.enabled to false seems to solve the issue :)

Seems like it's default in the new version :\

I'll work on an update that better supports semantic highlighting 🙂 to be honest, the feature is really cool and I'd like to turn it on, I just need to fix some problems

I don't think I can fix it myself. It's a problem with the implementation that VS Code will need to fix I think.

Ref: microsoft/vscode#92308

Leaving this open until it gets fixed

It's been fixed. It's disabled by default in the new update, add this to enable it:

  "editor.tokenColorCustomizations": {
    "semanticHighlighting": true
  }

Works well in my brief experience. One thing that's not possible right now is distinguishing function calls and function declarations, which is possible in the regular TextMate grammars. Might open an issue...