Microsoft/TypeScript
Ver no GitHubTemplate string literal highlighting breaks on ternary operator with typeof
Open
#42.793 aberto em 13 de fev. de 2021
BugDomain: Something ElseHelp Wanted
Métricas do repositório
- Stars
- (48.455 stars)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)
Description
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.