TypeScript non-null assertion operator breaks subsequent syntax highlighting #26496
Labels
javascript
JavaScript support issues
languages-basic
Basic language support issues
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Without non-null assertion operator:
With non-null assertion operator:
The only difference between the above two examples is the presence of a non-null assertion postfix operator after the expression
vars.get(name)
.I've tried switching through all my color themes, and they all have the same issue, suggesting this is an issue with the way TypeScript is being tokenized, rather than with any particular theme itself.
The text was updated successfully, but these errors were encountered: