You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad syntax Highlighting in TS when using multiline union types #1043
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains.
Activity
vs-code-engineering commentedon Nov 29, 2024
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
RedCMD commentedon Nov 29, 2024
Add something like
|(?=function\\s)totype-annotationshould worktgroutars commentedon Dec 12, 2024
It's not just
functions, anything that comes after it has bad syntax highlighting unfortunatelysaltire commentedon Jan 23, 2025
Here is another example, if needed. The first
test1function renders correctly, but the secondtest2function does not.This is the result in Monokai. Notice how the keywords
async,constandreturnare incorrect, as well as the closing>in the generic type.In some themes there are further issues; in One Monokai, notice the
abcvariable andtoStringfunction.