Merge pull request #1640 from docwhat/pr/lsp-handle-missing-details

lsp: handle missing "detail" key
This commit is contained in:
w0rp 2018-06-11 21:33:49 +01:00 committed by GitHub
commit 22a9dcd03e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -317,7 +317,7 @@ function! ale#completion#ParseLSPCompletions(response) abort
\ 'word': l:word,
\ 'kind': l:kind,
\ 'icase': 1,
\ 'menu': l:item.detail,
\ 'menu': get(l:item, 'detail', ''),
\ 'info': get(l:item, 'documentation', ''),
\})
endfor