mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
cargo xtask tidy
This commit is contained in:
parent
1f7c3e8b92
commit
8f6d32cf62
@ -7,6 +7,14 @@ use syntax::{
|
||||
|
||||
use crate::NavigationTarget;
|
||||
|
||||
// Feature: Children Modules
|
||||
//
|
||||
// Navigates to the children modules of the current module.
|
||||
//
|
||||
// | Editor | Action Name |
|
||||
// |---------|-------------|
|
||||
// | VS Code | **rust-analyzer: Locate children modules** |
|
||||
|
||||
/// This returns `Vec` because a module may be included from several places.
|
||||
pub(crate) fn children_modules(db: &RootDatabase, position: FilePosition) -> Vec<NavigationTarget> {
|
||||
let sema = Semantics::new(db);
|
||||
@ -104,7 +112,6 @@ mod foo;
|
||||
//^^^
|
||||
mod bar;
|
||||
//^^^
|
||||
|
||||
//- /foo.rs
|
||||
// empty
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!---
|
||||
lsp/ext.rs hash: 3549077514b37437
|
||||
lsp/ext.rs hash: 300b4be5841cee6f
|
||||
|
||||
If you need to change the above hash to make the test pass, please check if you
|
||||
need to adjust this doc as well and ping this issue:
|
||||
|
Loading…
x
Reference in New Issue
Block a user