diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-22 15:06:32 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-22 15:06:32 +0000 |
commit | 595a2f9900d052d0c5cc3529602aec0cbcd52614 (patch) | |
tree | 7af6dd503e1247952e3689b562c5470f4ae28613 /crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap | |
parent | 9e0abfc0c9b9d36c45c9d8567c632c0167b31084 (diff) | |
parent | 7c27e6d2b3133e4c37b176f0e13c15994eb16dfa (diff) |
Merge #593
593: Docs for completion r=matklad a=kjeremy
The first commit adds documentation support to CompletionItems.
The second one I am unsure about. Is that the right way to add docs for functions? If so should I do something similar for other `hir` types and CompletionItems?
Co-authored-by: Jeremy Kolb <[email protected]>
Co-authored-by: Jeremy A. Kolb <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap index 59e11c585..54175c1a3 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__last_return_in_block_has_semi2.snap | |||
@@ -1,7 +1,9 @@ | |||
1 | Created: 2019-01-20T04:00:48.221138+00:00 | 1 | --- |
2 | Creator: [email protected] | 2 | created: "2019-01-22T14:45:00.733874300+00:00" |
3 | Source: crates/ra_ide_api/src/completion/completion_item.rs | 3 | creator: [email protected] |
4 | 4 | expression: kind_completions | |
5 | source: "crates\\ra_ide_api\\src\\completion\\completion_item.rs" | ||
6 | --- | ||
5 | [ | 7 | [ |
6 | CompletionItem { | 8 | CompletionItem { |
7 | completion_kind: Keyword, | 9 | completion_kind: Keyword, |
@@ -10,6 +12,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
10 | Keyword | 12 | Keyword |
11 | ), | 13 | ), |
12 | detail: None, | 14 | detail: None, |
15 | documentation: None, | ||
13 | lookup: None, | 16 | lookup: None, |
14 | insert_text: Some( | 17 | insert_text: Some( |
15 | "if $0 {}" | 18 | "if $0 {}" |
@@ -25,6 +28,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
25 | Keyword | 28 | Keyword |
26 | ), | 29 | ), |
27 | detail: None, | 30 | detail: None, |
31 | documentation: None, | ||
28 | lookup: None, | 32 | lookup: None, |
29 | insert_text: Some( | 33 | insert_text: Some( |
30 | "match $0 {}" | 34 | "match $0 {}" |
@@ -40,6 +44,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
40 | Keyword | 44 | Keyword |
41 | ), | 45 | ), |
42 | detail: None, | 46 | detail: None, |
47 | documentation: None, | ||
43 | lookup: None, | 48 | lookup: None, |
44 | insert_text: Some( | 49 | insert_text: Some( |
45 | "while $0 {}" | 50 | "while $0 {}" |
@@ -55,6 +60,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
55 | Keyword | 60 | Keyword |
56 | ), | 61 | ), |
57 | detail: None, | 62 | detail: None, |
63 | documentation: None, | ||
58 | lookup: None, | 64 | lookup: None, |
59 | insert_text: Some( | 65 | insert_text: Some( |
60 | "loop {$0}" | 66 | "loop {$0}" |
@@ -70,6 +76,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
70 | Keyword | 76 | Keyword |
71 | ), | 77 | ), |
72 | detail: None, | 78 | detail: None, |
79 | documentation: None, | ||
73 | lookup: None, | 80 | lookup: None, |
74 | insert_text: Some( | 81 | insert_text: Some( |
75 | "return $0;" | 82 | "return $0;" |