diff options
author | w0rp <w0rp@users.noreply.github.com> | 2020-11-21 16:16:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 16:16:08 +0000 |
commit | edd96f44148ec1877cf031417eab764a266ed32b (patch) | |
tree | e93e2bfc4b94b2d1f4e4b55a2eb73089cdc2c850 /test | |
parent | d23c9125c53d9ecd84a8c49002b4bc412dca0b25 (diff) | |
parent | 9769565f882b43512105d1b63a2f4ceda7a39d86 (diff) | |
download | ale-edd96f44148ec1877cf031417eab764a266ed32b.zip |
Merge pull request #3354 from rphln/collapse-whitespaces
Collapse spaces and lines in the completion menu.
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/test_lsp_completion_parsing.vader | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/completion/test_lsp_completion_parsing.vader b/test/completion/test_lsp_completion_parsing.vader index d989aefe..36228c10 100644 --- a/test/completion/test_lsp_completion_parsing.vader +++ b/test/completion/test_lsp_completion_parsing.vader @@ -40,6 +40,7 @@ Execute(Should handle Rust completion results correctly): \ {'word': 'from', 'menu': 'fn from(s: &''a str) -> String', 'info': '', 'kind': 'f', 'icase': 1, 'user_data': json_encode({'_ale_completion_item': 1})}, \ {'word': 'from', 'menu': 'fn from(s: Box<str>) -> String', 'info': '', 'kind': 'f', 'icase': 1, 'user_data': json_encode({'_ale_completion_item': 1})}, \ {'word': 'from', 'menu': 'fn from(s: Cow<''a, str>) -> String', 'info': '', 'kind': 'f', 'icase': 1, 'user_data': json_encode({'_ale_completion_item': 1})}, + \ {'word': 'to_vec', 'menu': 'pub fn to_vec(&self) -> Vec<T> where T: Clone,', 'info': '', 'kind': 'f', 'icase': 1, 'user_data': json_encode({'_ale_completion_item': 1})}, \], \ ale#completion#ParseLSPCompletions({ \ "jsonrpc":"2.0", @@ -184,6 +185,11 @@ Execute(Should handle Rust completion results correctly): \ "label":"from", \ "kind":3, \ "detail":"fn from(s: Cow<'a, str>) -> String" + \ }, + \ { + \ "label":"to_vec", + \ "kind":3, + \ "detail":"pub fn to_vec(&self) -> Vec<T>\nwhere\n T: Clone," \ } \ ] \ }) |