mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Add module documentation support
This commit is contained in:
parent
bce0c6267a
commit
6588579116
4 changed files with 50 additions and 1 deletions
|
@ -65,6 +65,22 @@ mod tests {
|
|||
check_completion(code, expected_completions, CompletionKind::Reference);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn completes_mod_with_docs() {
|
||||
check_reference_completion(
|
||||
"mod_with_docs",
|
||||
r"
|
||||
use self::my<|>;
|
||||
|
||||
/// Some simple
|
||||
/// docs describing `mod my`.
|
||||
mod my {
|
||||
struct Bar;
|
||||
}
|
||||
",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn completes_use_item_starting_with_self() {
|
||||
check_reference_completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue