Skip to content

Invalid syntax highlighting after arrow function with single line conditional body #741

Closed
@mjbvz

Description

TS and JS Grammar Extension version: 0.0.50 / latest

From microsoft/vscode#72066

Code

class CategoriesComponent {
    x() {
        subscribe(data => { if (data) console.log(1) })
    }

    private checkCompanyRole() {
        return this
    }
}

Highlighting is broken after the console.log(1)

Screen Shot 2019-04-10 at 1 52 09 PM

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