-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
microsoft/vscode
#145941Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Bug Report
🔎 Search Terms
- Method signature completions
- suggest / suggestions
- completions
🕗 Version & Regression Information
4.5.0-dev.20211029
💻 Code
For the code:
interface IFoo {
bar(x: number): void;
}
const obj: IFoo = {
|
}
Trigger suggestions inside the object literal
🙁 Actual behavior
We get a suggestion for bar
but accepting it only completes bar
🙂 Expected behavior
Accepting the completion for bar
should also insert the method signature:
interface IFoo {
bar(x: number): void;
}
const obj: IFoo = {
bar(x: number): void {
}
}
andrewbranch, a-tarasyuk, gabritto, DanielRosenwasser, dhoulb and 6 more
Metadata
Metadata
Assignees
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript