VSCode Extension createTextEditorDecorationType ignore whitespace

Viewed 399

I'm working on an extension which colors some text within the editor based on some condition. Unfortunately, it looks like the style applied to the text is also applied to the whitespace characters when the user has editor.renderWhitespace enabled.

I can't find anything in the API which gives the option of ignoring the whitespace when coloring.

Does anyone know of a way to leave the color of the whitespace characters intact?

2 Answers
Related