Add module documentation support
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user