You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Seems to be an interplay between the ternary operator, the not-null assertion operator and function call parentheses. Even the syntax highlighting for the above code sample here on Github seems to show a similar issue.
Workaround is to put parentheses around the asserted expression:
From @axefrog on May 11, 2017 23:38
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.
Copied from original issue: microsoft/vscode#26496
The text was updated successfully, but these errors were encountered: