diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-10 13:07:19 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-10 13:07:19 +0000 |
commit | aca14c591fea40b2f803bbf5f02c1571732348fb (patch) | |
tree | 432f3cac863a499fe573cd747a2f7ca2d65b70c8 /crates/ra_lsp_server | |
parent | aef93c918e2b6e0b8826e970b00c46f8a5c3aaa9 (diff) | |
parent | 56b2138d82620db946fe08ddc164c5e7e22be625 (diff) |
Merge #475
475: Show types of fields in completion r=matklad a=matklad
![image](https://user-images.githubusercontent.com/1711539/50910524-0f146200-143f-11e9-84d6-0ba80761cd89.png)
r? @flodiebold
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r-- | crates/ra_lsp_server/src/conv.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs index 5c8b3c194..35c679a4a 100644 --- a/crates/ra_lsp_server/src/conv.rs +++ b/crates/ra_lsp_server/src/conv.rs | |||
@@ -75,6 +75,7 @@ impl Conv for CompletionItem { | |||
75 | fn conv(self) -> <Self as Conv>::Output { | 75 | fn conv(self) -> <Self as Conv>::Output { |
76 | let mut res = ::languageserver_types::CompletionItem { | 76 | let mut res = ::languageserver_types::CompletionItem { |
77 | label: self.label().to_string(), | 77 | label: self.label().to_string(), |
78 | detail: self.detail().map(|it| it.to_string()), | ||
78 | filter_text: Some(self.lookup().to_string()), | 79 | filter_text: Some(self.lookup().to_string()), |
79 | kind: self.kind().map(|it| it.conv()), | 80 | kind: self.kind().map(|it| it.conv()), |
80 | ..Default::default() | 81 | ..Default::default() |