KEMBAR78
Method override completions Β· Issue #45670 Β· microsoft/TypeScript Β· GitHub
Skip to content

Method override completions Β #45670

@mjbvz

Description

@mjbvz

Suggestion

πŸ” Search Terms

  • suggest / suggestion
  • IntelliSense
  • Snippet / snippets
  • Tooling
  • VS Code / vscode

⭐ Suggestion

For the code:

abstract class Base {
    abstract foo(param1: string, param2: boolean): Promise<void>;
}

class Sub extends Base {
    
}

I should be able to type f inside the body of Sub and get a suggestion for foo that fills in the entire signature of the method when accepted:

class Sub extends Base {
    foo(param1: string, param2: boolean): Promise<void> {
        | // cursor ends up here
    }
}

Right now, accepting the suggestion for foo only inserts the text foo. I have to fill out the entire body of the method myself, typically by copy and pasting from the base class

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions