-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
A-completionautocompletionautocompletionC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
Given this code:
trait Tr {
type Ty;
const KONST: u8;
fn required();
fn provided() {}
}
impl Tr for () {
$0
}The completion we provide are generally pretty bad:
- Requesting completions at
$0without typing anything else just shows generic completions. We should prioritize completions of missing trait items to be at the very top there.- (in fact I cannot find them in the list at all, do they only show up if at least one character is typed?)
- Replacing
$0withfnand then requesting completions shows nothing. Instead, bothrequiredandprovidedshould show up.- (the same happens when typing other keywords)
- Applying the completion for
TyandKONSTdoes not complete the required;at the end, but thefncompletions do include the function body and place the cursor inside. - Impl items generated by macros are still suggested.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-completionautocompletionautocompletionC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Type
Fields
Give feedbackNo fields configured for issues without a type.