-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-completionautocompletionautocompletionE-hardE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedfunA technically challenging issue with high impactA technically challenging issue with high impactgood first issue
Description
See #1022 (comment)
The idea is that for
trait T {
fn foo();
}
impl T for () {
|
}We should get completions for foo. Specifically, the completion should trigger on fn keyword and on bare identifier (so that users who know about this feature can just type the identifier)
The code, responsible for completions, lives here:
To implement this feature, one has to add more info to CompletionContext and to create a separate completion module. Take a look at complete_fn_param which does somewhat similar magical completions.
This should also work for types and consts
Metadata
Metadata
Assignees
Labels
A-completionautocompletionautocompletionE-hardE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedfunA technically challenging issue with high impactA technically challenging issue with high impactgood first issue