diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-09-15 17:18:30 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-15 17:18:30 +0100 |
commit | 37f3b9ca2a0252b93c5900e2104e3e954c383869 (patch) | |
tree | 51ca21399d11ebbc1337c0837d17a6523056bd0e /crates/ide/src/completion | |
parent | f514965c519521246696365e3ca2227c31d3cf08 (diff) | |
parent | e0f0d93eda8fbcd523187ef29b713acb9a92cb6f (diff) |
Merge #6008
6008: inline parameters for a function description r=jonas-schievink a=bnjjj
close #6002
Co-authored-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/ide/src/completion')
-rw-r--r-- | crates/ide/src/completion/complete_qualified_path.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/crates/ide/src/completion/complete_qualified_path.rs b/crates/ide/src/completion/complete_qualified_path.rs index 79de50792..00e89f0fd 100644 --- a/crates/ide/src/completion/complete_qualified_path.rs +++ b/crates/ide/src/completion/complete_qualified_path.rs | |||
@@ -730,4 +730,26 @@ fn f() {} | |||
730 | expect![[""]], | 730 | expect![[""]], |
731 | ); | 731 | ); |
732 | } | 732 | } |
733 | |||
734 | #[test] | ||
735 | fn completes_function() { | ||
736 | check( | ||
737 | r#" | ||
738 | fn foo( | ||
739 | a: i32, | ||
740 | b: i32 | ||
741 | ) { | ||
742 | |||
743 | } | ||
744 | |||
745 | fn main() { | ||
746 | fo<|> | ||
747 | } | ||
748 | "#, | ||
749 | expect![[r#" | ||
750 | fn foo(…) fn foo(a: i32, b: i32) | ||
751 | fn main() fn main() | ||
752 | "#]], | ||
753 | ); | ||
754 | } | ||
733 | } | 755 | } |