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
1 changed files with 1 additions and 1 deletions

View File

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