Skip to content

as const cast wrong colour when using typescript 4.5.2 #47043

Closed
@Nokel81

Description

@Nokel81

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:

  1. Create a typescript file with the line [1, "hello"] as const
  2. Notice that const is green (as in a type) instead of blue since it is a keyword.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions