diff options
| author | geetanshjuneja <ronitjuneja2002@gmail.com> | 2025-04-07 21:41:26 +0530 |
|---|---|---|
| committer | geetanshjuneja <ronitjuneja2002@gmail.com> | 2025-04-07 21:41:26 +0530 |
| commit | 7b37e91f225a7942b5ccc5e60a89614673cd1843 (patch) | |
| tree | 246031a9ae213d4cc4b30086c2ea227fbe156dd6 /src/tools/rust-analyzer | |
| parent | ac3a2b9ca931dad54a190df9bf91d193aaf9f67a (diff) | |
| download | rust-7b37e91f225a7942b5ccc5e60a89614673cd1843.tar.gz rust-7b37e91f225a7942b5ccc5e60a89614673cd1843.zip | |
cargo xtask tidy
Diffstat (limited to 'src/tools/rust-analyzer')
| -rw-r--r-- | src/tools/rust-analyzer/crates/ide/src/children_modules.rs | 9 | ||||
| -rw-r--r-- | src/tools/rust-analyzer/docs/book/src/contributing/lsp-extensions.md | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/ide/src/children_modules.rs b/src/tools/rust-analyzer/crates/ide/src/children_modules.rs index a668e52c3c9..4bb7cb8424c 100644 --- a/src/tools/rust-analyzer/crates/ide/src/children_modules.rs +++ b/src/tools/rust-analyzer/crates/ide/src/children_modules.rs @@ -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 diff --git a/src/tools/rust-analyzer/docs/book/src/contributing/lsp-extensions.md b/src/tools/rust-analyzer/docs/book/src/contributing/lsp-extensions.md index 16217a7aa9e..8854f580ea0 100644 --- a/src/tools/rust-analyzer/docs/book/src/contributing/lsp-extensions.md +++ b/src/tools/rust-analyzer/docs/book/src/contributing/lsp-extensions.md @@ -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: |
