Closed tjx666 closed 2 years ago
This was intentionally disabled as <>
breaks on many occasions as highlight is text based (for performance reasons). See #132476 and ton of duplicates for details.
If you follow steps from https://github.com/microsoft/vscode/issues/131412 and enable it for TS you would get much worse result
I guess that you should use extension that provides languages specific highlights if you prefer correctness/features over performance(main reason to implement it in editor).
Seems need ast to analyze the color pair in typescirpt for <>
In theory, the grammar could mark certain unbalanced occurences of <
and >
as a special token kind (like comment, string or regexp).
Proper support is not planned at the moment.
Recently I did many typescript type excercises by https://github.com/type-challenges/type-challenges. I need to write many generic with
<>
bracket pair.For example:
I hard to regonize which part is the generic parameter for type
UnionToIntersection
.I can recogonize the function part by put cursor bufore
(
like:But can't by put cursor before
<
:@hediet