-
Notifications
You must be signed in to change notification settings - Fork 13.3k
as const cast wrong colour when using typescript 4.5.2 #47043
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
Description
TS Template added by @mjbvz
TypeScript Version:4.5.2
Search Terms
- semantic coloring
- encodedSemanticClassifications
Does this issue occur when all extensions are disabled?: Yes
Version: 1.62.3
Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
Date: 2021-11-17T07:59:13.865Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 19.6.0
Steps to Reproduce:
- Create a typescript file with the line
[1, "hello"] as const - Notice that
constis green (as in a type) instead of blue since it is a keyword.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this