Skip to content

TypeScript non-null assertion operator breaks subsequent syntax highlighting #453

@mjbvz

Description

@mjbvz

From @axefrog on May 11, 2017 23:38

  • VSCode Version: 1.12.1
  • OS Version: Windows 10

Without non-null assertion operator:

image

With non-null assertion operator:

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions