Skip to content

Cannot run 'convert to named parameters' refactoring for method implementing an interface #30418

@mjbvz

Description

@mjbvz

TypeScript Version: 3.4.0-dev.20190311

Search Terms:

  • refactor
  • convert to named parameters

Code

For the TS:

interface IFoo {
    method(x: string, y: string): void;
}

const x: IFoo  = {
    method(x, y) {}
};

Place cursor in the parameters in method(x, y) and run the convert to named parameter refactoring

Bug:
Although the refactoring is listed, it fails to apply.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issueVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions