Skip to content

Losing TypeScript syntax higlighting when using angle brackets on separate lines #890

Open
@gkn

Description

@gkn

Try this on https://vscode.dev/ or in VS Code:

See comments for where it fails.

class C {
    A() {
        return foo(bar, <
            a
        >{ v: "a string" }); // string is not colored    
    }

    B() {        
        return 101; // return keyword is not colored
    }
}

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions