aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-09 15:09:49 +0000
committerAleksey Kladov <[email protected]>2019-01-09 16:40:11 +0000
commitddf2a8a948ed91bda14fef398c850c71c403ab59 (patch)
tree4b219aac4b876d5526b295beab1d7e0ee6272adc /crates/ra_lsp_server
parentc2b8aa1ce5e5398d981387079e86ff67a5b7e8c0 (diff)
add completion detail
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/conv.rs1
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()