Skip to content

JS object destructuring: allow to shorten expression when assignment is renamed back to original property value #58447

Open
@undeletable

Description

@undeletable

Current behavior
In a restructuring assignment expression, when alias is renamed back to original property's name, it has the full form (const { property: property } = testObject; in the following example):
vscode-destructuring

Proposed behavior
Shorten form of assignment (const { property } = testObject; in this example) - either automatically, or enabled with configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions