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 grammar incorrectly colorizing readonly array in generic type #790

Closed
ChristianIvicevic opened this issue Nov 18, 2019 · 1 comment

Comments

@ChristianIvicevic
Copy link

  • VSCode Version: 1.40.1
  • OS Version: macOS 10.14.6

Steps to Reproduce:

  1. Create a TypeScript file with the following content:
[1, 2, 3].reduce<readonly number[]>((previous) => previous, []);

Neither readonly nor number are colorized accordingly anymore. The TS scope debug tooltip points out that both tokens are recognized as variable.other.readwrite.tsx.

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

@mjbvz mjbvz transferred this issue from microsoft/vscode Nov 18, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Nov 18, 2019

Confirmed using the latest grammar from master

@mjbvz mjbvz removed their assignment Nov 18, 2019
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

2 participants