mirror of https://github.com/dense-analysis/ale
lsp: handle missing "detail" key
This commit is contained in:
parent
10a9177b6b
commit
fd7456fce0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue