aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion/complete_scope.rs
diff options
context:
space:
mode:
authorAvishay Matayev <[email protected]>2020-03-03 21:02:51 +0000
committerAvishay Matayev <[email protected]>2020-03-04 09:03:32 +0000
commitfb34a5ba06a747a5705b9be36c75d26cece956e2 (patch)
tree67c52affa3a73a7774605d70d84d51300da2fe1a /crates/ra_ide/src/completion/complete_scope.rs
parent437329d3f5b7bb5b703b93c75a97d349eb77d6c7 (diff)
Support function's completion snippet
Note that `detail` was replced with `function_signature` to avoid calling `from` on FunctionSignature twice. I didn't add new tests because the current ones seem enough.
Diffstat (limited to 'crates/ra_ide/src/completion/complete_scope.rs')
-rw-r--r--crates/ra_ide/src/completion/complete_scope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/complete_scope.rs b/crates/ra_ide/src/completion/complete_scope.rs
index aad016d4a..2b9a0e556 100644
--- a/crates/ra_ide/src/completion/complete_scope.rs
+++ b/crates/ra_ide/src/completion/complete_scope.rs
@@ -38,7 +38,7 @@ mod tests {
38 label: "quux(…)", 38 label: "quux(…)",
39 source_range: [91; 91), 39 source_range: [91; 91),
40 delete: [91; 91), 40 delete: [91; 91),
41 insert: "quux($0)", 41 insert: "quux(${1:x})$0",
42 kind: Function, 42 kind: Function,
43 lookup: "quux", 43 lookup: "quux",
44 detail: "fn quux(x: i32)", 44 detail: "fn quux(x: i32)",