microsoft / vscode-typescript-next

Enables typescript@next as VS Code's built-in TypeScript version
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next
MIT License
232 stars 43 forks source link

Broken syntax highlighting on generics that span more than 1 line. #113

Closed walston closed 8 months ago

walston commented 8 months ago

Hello I work a lot with @reduxjs/toolkit and have been annoyed for a while by the broken syntax highlighting on generic functions as object values.

in the screenshot below, you can see that the closing > for the generic arguments highlights red, then the => gets broken as well. This seems to only affect object values, and the syntax highlighting has no problem handling the same when assigned to a simple variable.

Screenshot 2024-02-27 at 10 45 59 AM

The screenshot is from VS Code with all extensions disabled, so I believe this is an issue with the base syntax highlighter.

Thanks in advance.

mjbvz commented 8 months ago

Not caused by this extension. Duplicate of https://github.com/microsoft/TypeScript-TmLanguage/issues/903 / others in that repo