Skip to content

“Remove destructuring” changes the function signature. #76583

@infinnie

Description

@infinnie
  • VSCode Version: 1.36.0
  • OS Version: Windows 10 18362.175

Steps to Reproduce:

  1. Write code like function f({x}, y) {}.
  2. Select Remove destructuring from “Show fixes”.
  3. it is refactored to f(y) {}, which might cause problems because the function signature is changed.

I guess that it might be better refactored to something like f(_, y) {}.

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions