mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
More precise navigation to parent
This commit is contained in:
parent
2ac20b05f1
commit
ef8f38efc6
3 changed files with 13 additions and 10 deletions
|
@ -81,8 +81,8 @@ mod tests {
|
|||
check(
|
||||
r#"
|
||||
//- /lib.rs
|
||||
mod foo;
|
||||
//^^^^^^^^
|
||||
mod foo;
|
||||
//^^^
|
||||
|
||||
//- /foo.rs
|
||||
$0// empty
|
||||
|
@ -96,8 +96,8 @@ $0// empty
|
|||
check(
|
||||
r#"
|
||||
//- /lib.rs
|
||||
mod foo;
|
||||
//^^^^^^^^
|
||||
mod foo;
|
||||
//^^^
|
||||
//- /foo.rs
|
||||
mod $0bar;
|
||||
|
||||
|
@ -115,7 +115,7 @@ mod $0bar;
|
|||
mod foo {
|
||||
mod bar {
|
||||
mod baz { $0 }
|
||||
} //^^^^^^^^^^^^
|
||||
} //^^^
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue