sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Autocompletion during destructuring should not list variables that are already destructured.

Open rrousselGit opened this issue 1 year ago • 0 comments

Consider the following named record:

const tuple = (value: 42, another: 21);

When using destructuring to create new variables, autocomplete currently keeps suggesting variables that were already assigned.

See:

Screenshot 2024-02-12 at 22 39 20 Screenshot 2024-02-12 at 22 39 51

As you can see, even though we already used :another, the autocompletion keeps suggesting :another. This makes no sense, as final (:another, :another, :value) = tuple is not valid syntax.

rrousselGit avatar Feb 12 '24 21:02 rrousselGit