Skip to content

Surrounding pair doesn't work with invalid empty lambda #2291

Closed
@pokey

Description

In the following Typescript code:

(() => ())

Saying "take pair" from the => should select the whole line, but just gives an error. I don't believe this is valid Typescript (something needs to be between second pair of inner parens for it to be a valid lambda), but it should still be handled correctly by our code that is supposed to fall back to textual when in an error node

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglang-typescriptTypeScript/JavaScript grammar support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions