catppuccin / vscode

🦌 Soothing pastel theme for VSCode & Azure Data Studio

Home Page:https://marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc-pack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript types have wrong colors inside nested `[]`.

fenilli opened this issue · comments

If you look at this line: (...args: [...GlobalEventsMap[K]['parameters'], ...A]) => GlobalEventsMap[K]['result'];, the [K]['parameters'] should be the same color as [K]['result'].

image

I took a look at this, and I'm not really sure what you mean; do you mean the brackets themselves?
2023-10-30-111039@2x
This screenshot is with the config set to "editor.bracketPairColorization.enabled": false.
The [K]['parameters'] with it turned on is green because it is nested inside an additional pair of parentheses.

I see so because it is [[K]['parameters']] it makes it green? it still looks odd right?

I would expect the [ and ] to not be green like a string tho.

I cannot control the colors of brackets, parentheses and braces, if the user has editor.bracketPairColorization enabled.
That's why you have the option of turning it off completely, or selecting other styles like dimmed:
2023-10-30-151519@2x

2023-10-30-151458@2x

Oh I see what you mean now, thanks for the explanation.