Skip to content

Exclude completions of binding pattern variable initializers #53049

Closed
@zardoy

Description

@zardoy

Bug Report

Completions from binding pattern variable initializers are included, but they shouldn't

🔎 Search Terms

no suggestions const destruct destructure

🕗 Version & Regression Information

Copied from available fix #52723 :

const {a1} = a/* should not complete a1 */

Real world case:

let pageToReturn

const { data: pageData } = await octokit.repos.listTags({
    page: page /* pageData is suggested first */
})

Some kind of follow up for #42087

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions