Skip to content

Add a 'Replace unused destructured parameter with _' quick fix #32297

@mjbvz

Description

@mjbvz

From microsoft/vscode#76583

TypeScript Version: typescript@3.6.0-dev.20190704

Search Terms:

  • quick fix
  • remove destructuring
  • parameter
  • function

Code

function f({x}, y) { return y; }

Trigger quick fixes on {x}

Bug:
A quick fix which removes the destructing is returned, but there is no quick fix to convert the first paramter to a _. Replacing a parameter with _ is available for normal parameters:

function f(x, y) { return y; }

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions