Skip to content

Quickfix for interface method stubs #867

@bali182

Description

@bali182

I find this a very useful feature, mostly for compiled languages like java or scala.

Let's say you have an interface:

interface IFoo {
  foo(): number
  bar(): string
}

Now when you start writing an implementation, and you have this:

class FooImpl implements IFoo {
}

It would be really helpful to have a quickfix, that is able to generate for you something like this:

class FooImpl implements IFoo {
  foo(): number {
    return undefined;
  }
  bar(): string {
    return undefined;
  }
}

Because otherwise you have to go to the interface, copy-paste the methods, ... I don't have to explain the process.

Do you consider implementing this? If not, would you consider accepting a PR if I were to implement it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions