cobalt2-vscode
cobalt2-vscode copied to clipboard
Inconsitant colors
When viewing a ts file in the side by side view from the source control panel the left side has the colors pre 2.2, and the right side has the colors of 2.2
Also primitive types such as string
and number
does not have the same color as custom types
The colors are also different when hovering
I've opened an issue for the primitive types here: https://github.com/microsoft/vscode/issues/111511
Will have a look at the source control issue in a bit! thanks for reporting
No worries! Got super confused when I got to work this morning and did not recognize my code. Very nice with more colors in TS, was a bit envious of how it looked in your courses in JS. ;)
Thanks! Let me know if anything else pops up or doesn't make sense as you use it in TS.
It's not only happening in source control tab. I'm seeing these differences in all files. Typescript definitions are now also italic/recursive. Is this intended? Especially the React.FC
part looks weird.
Exactly as reported by @mlonn , correct colors and font style is shown when hovering:
Edit: Oh right I guess these are indeed intended changes. The hovering styles are however different.
Also noticed the same thing this morning. When using TS it really makes the types difficult to read. I also noticed that for object paths the colour is inconsistent (see below).
Also noticed the same thing this morning. When using TS it really makes the types difficult to read. I also noticed that for object paths the colour is inconsistent (see below).
Can you open a new issue for this
Function argument color is not equal with the color of the variable within the function
at least not always
If it's on purpose, you can forget my comment
https://github.com/microsoft/vscode/issues/111511 Looks like the primitive types is on purpose.
They said to talk to Typescript. Not sure where to open that issue, so I'm going to leave it for now. Not a huge problem for me.
will investigate these other things though :) Thanks for reporting them