Microsoft/TypeScript
GitHub ã§èŠãTemplate string literal highlighting breaks on ternary operator with typeof
Open
#42,793 opened on 2021幎2æ13æ¥
BugDomain: Something ElseHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
Bug Report
ð Search Terms
template string literal highlighting
ð Version & Regression Information
VSCode 1.53.2 + TypeScript 4.1.5
⯠Playground Link
ð» Code
function HighlightingWorksFineHere(): void {}
`${0 ? typeof 0 ? 0 : 0 : 0}`;
function ButHereItIsBroken(): void {}
function HighlightingWorksFineHere(): void {}
`${0 ? typeof 0 : 0}`;
function ButHereItIsBroken(): void {}
ð Actual behavior
Highlighting breaks after template literal with ternary operator and typeof in VSCode (seems fine in playground though), looks like the closing backtick is not recognized or treated as opening backtick.