Description
I just updated and my javascript syntax highlighting broke.
- VSCode Version: 1.43
- OS Version: Windows 10
Does this issue occur when all extensions are disabled?: Yes
EDIT: I rolled back to January. Much better now
Edit by @aeschli (VSCode team):
What you see is the new semantic highlighting feature updating the highlighting with resolved information from the TypeScript server. The server takes a while to load, depending on the size of the project, that's why the highlighting comes in delayed.
As a result, each identifier gets colored & styled with the color of the symbol it resolves to. You can see this the easiest in the imports where you can now see what is a function, variable or type. Another example are that readonly variables ('consts') and members can get a different style that modifiable variables, if the theme has defined different colors & styles.
There are still bugs with the way symbols are classified (e.g. resolve
and other symbols that are both function and object), but the color changes as such are intended.
We're still debating what the best default setting for semantic highlighting is as many see the updated colors as a bug.
You can turn the semantic highlighting feature off with
"editor.semanticHighlighting.enabled": false
I created https://github.com/microsoft/vscode/wiki/Semantic-Highlighting-Overview#semantic-highlighting with the planed changes for this weeks stable fix release (1.43.1):
We will only enable semantic highlighting by default for the built-in themes. Other themes can opt-in (or it can be enabled in the user settings).