Vscode-cpptools: 0.24.0-insiders - Syntax colorization broken on some themes

Created on 15 Jun 2019  路  7Comments  路  Source: microsoft/vscode-cpptools

Type: LanguageService

In 0.24.0-insiders, there are some themes rendering the syntax highlighting incorrectly. if this affects your theme, please add a comment to this issue. We are working out which ones were broken with our syntax highlighting change.

To disable the new syntax highlighting, set "C_Cpp.enhancedColorization": "Disabled" and you will get the old behavior again.

Known themes with this issue:

  • Tomorrow Night Blue
  • High Contrast
Colorization Language Service bug fixed (release pending) insiders

All 7 comments

Affects the Monokai theme.
"C_Cpp.enhancedColorization": "Disabled" resolved it.

This is affecting the Atom One Dark when using "editor.renderWhitespace": "all".
The white spaces inside a comment are highlighted in the same color as words, for example:

comment

"C_Cpp.enhancedColorization": "Disabled" resolved it as well.

Also affects the vscode-ayu themes, example below. Of course disabling the mentioned option fixes the issue.
Zrzut ekranu 2019-06-16 o 11 34 05

@Pigzaum
Whitespace character rendering in comments has wrong colors also in the default theme:
image
I believe it should have the same color as everywhere else.
Furthermore, changing the color with:

"workbench.colorCustomizations": {
    "editorWhitespace.foreground": "#ffffff22"
},

does not affect the comments.

The same problem occurs with strings:
image
Again, the whitespaces are orange instead of gray.

Please upvote the following issue: https://github.com/microsoft/vscode/issues/49462

One potential "fix" for the the editor.renderWhitespace issue is:

  1. If the user has the "all" setting set, then disable enhancedColorization by default.
  2. If the user has the "boundary" setting set, then exclude > 1 whitespace from decorations.

Fixed with 0.24.0-insiders2. Set the "C_Cpp.updateChannel" setting to "Insiders" to auto-install it.

Was this page helpful?
0 / 5 - 0 ratings