Skip to content

Method override completions Β #45670

Closed
microsoft/vscode
#136045

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Domain: Completion ListsThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions