cobalt2-vscode icon indicating copy to clipboard operation
cobalt2-vscode copied to clipboard

Strange Colouring

Open nigelterry opened this issue 4 years ago • 8 comments

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??

Cobalt

nigelterry avatar Nov 27 '20 22:11 nigelterry

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!

wesbos avatar Nov 27 '20 22:11 wesbos

Maybe these will help:

Screenshot_20201129_124938

Screenshot_20201129_125324

nigelterry avatar Nov 29 '20 17:11 nigelterry

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?

wesbos avatar Nov 30 '20 14:11 wesbos

Javascript React

File and settings.json in the archive. Let me know if you need anything else.

Archive.zip

nigelterry avatar Nov 30 '20 15:11 nigelterry

can you update to the latest (Update All Extensions in command palette). I'm not seeing this issue in any file..

wesbos avatar Nov 30 '20 18:11 wesbos

Still the same issue with 2.2.5.

Is it related to the fact that BeersPage is the default export from beers.js?

nigelterry avatar Nov 30 '20 22:11 nigelterry

image Hi ! I am observing strange behaviour in the theme. CSS selectors go dark in one single file; others look good. Why it?

Yasnohorodskyi avatar Jul 04 '21 08:07 Yasnohorodskyi

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 consts yellow):

javascript

image

javascriptreact

javascriptreact

aharvard avatar Oct 02 '21 13:10 aharvard