Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript type textMate scopes highlighting error #997

Open
shaddollxz opened this issue Nov 13, 2023 · 1 comment
Open

typescript type textMate scopes highlighting error #997

shaddollxz opened this issue Nov 13, 2023 · 1 comment

Comments

@shaddollxz
Copy link

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.84.1
  • OS Version: macOS 14.0

I have the following TypeScript code, and its return type is a union type. However, the colors for syntax highlighting are inconsistent in the same location (data and arg). I found that this is due to their different TextMate scopes.

declare function getCb():
  | { data: string; cb: (arg: string) => void }
  | { data: number; cb: (arg: number) => void }

like :
图片
scopes :
图片
图片

@shaddollxz
Copy link
Author

In function generics, if there is a line break within the generic, the issue with mismatched scopes for syntax highlighting can also occur

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant