cobalt2-vscode
cobalt2-vscode copied to clipboard
Strange Colouring
I just downloaded v2.2.3 and also enabled cobalt2-custom-hacks.css for the first time. When I look at my code in the editor, I see differing colours for three function definitions. See the attached file. const and the function names go
orange white orange orange white orange
Am I doing something wrong??
Hey!
The first one is a variable, and correct.
The second one is a variable with a function in it, correct.
The third one is weird! I’ll have a look!
Maybe these will help:
can you paste this code you are using into the issue? It's breaking on some syntax highligting.
Also, are you using javascript
or javascriptreact
for highligting?
Javascript React
File and settings.json in the archive. Let me know if you need anything else.
can you update to the latest (Update All Extensions in command palette). I'm not seeing this issue in any file..
Still the same issue with 2.2.5.
Is it related to the fact that BeersPage is the default export from beers.js?
Hi ! I am observing strange behaviour in the theme. CSS selectors go dark in one single file; others look good. Why it?
can you update to the latest (Update All Extensions in command palette). I'm not seeing this issue in any file..
Same. I'm not able to reproduce the issue.
The settings provided in the zip did not set the .js file to be highlighted as javascriptreact
by default for me. So, I manually switched between javascript
and javascriptreact
and both highlighted as expected (all const
s yellow):