vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Goto trait implementation

Open Volker-Weissmann opened this issue 5 years ago • 1 comments

Let's say I'm working on the code below and I want to find the code which "obj.func()" calls, in this case line 6. Afaik, there is currently no way to jump to line 6.

Putting the cursor on obj.func() and running "go to definition" jumps to line 2.

Putting the cursor on obj.func() and running "go to implementations" says "No implementation available for func".

It would be nice if there would be a "go to function" that would jump from ob.func() to line 6.

trait Funcy {
    fn func(&self); // lin 2
}
struct SA {}
impl Funcy for SA {
    fn func(&self) {} // line 6
}
struct SB {}
impl Funcy for SB {
    fn func(&self) {}
}
fn main() {
    let obj = SA{};
    obj.func();	
}

Volker-Weissmann avatar Aug 30 '20 17:08 Volker-Weissmann

Please, it would be very good

Luifr avatar Sep 01 '21 17:09 Luifr