Skip to content

Unclosed object binding patterns do not give correct completions #3623

@DanielRosenwasser

Description

@DanielRosenwasser

Now that #3615 is in, here's an annoying one for editors without brace completion:

interface Thing {
    abcdef: any;
}

interface I {
    property1: Thing;
    property2: string;
}
var foo: I;
var { property1: { /**/ } = foo;

Expected: abcdef is in the completion list.
Actual: property1 and property2 are in the completion list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions