aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_path.rs
diff options
context:
space:
mode:
authorJeremy A. Kolb <[email protected]>2019-01-25 17:51:36 +0000
committerJeremy A. Kolb <[email protected]>2019-01-25 17:51:36 +0000
commit65885791165c42b48fa2deaed32c4f35c17c62f5 (patch)
treea89ba72dcfe621767a14c1af07df535f98eb3cfb /crates/ra_ide_api/src/completion/complete_path.rs
parentbce0c6267aab2e8ca33a3e78a1081736abbc1373 (diff)
Add module documentation support
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_path.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs
index 172aedf95..b33ddcde5 100644
--- a/crates/ra_ide_api/src/completion/complete_path.rs
+++ b/crates/ra_ide_api/src/completion/complete_path.rs
@@ -66,6 +66,22 @@ mod tests {
66 } 66 }
67 67
68 #[test] 68 #[test]
69 fn completes_mod_with_docs() {
70 check_reference_completion(
71 "mod_with_docs",
72 r"
73 use self::my<|>;
74
75 /// Some simple
76 /// docs describing `mod my`.
77 mod my {
78 struct Bar;
79 }
80 ",
81 );
82 }
83
84 #[test]
69 fn completes_use_item_starting_with_self() { 85 fn completes_use_item_starting_with_self() {
70 check_reference_completion( 86 check_reference_completion(
71 "use_item_starting_with_self", 87 "use_item_starting_with_self",