mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
#2481 - Use text to insert from insertText
This commit is contained in:
@@ -386,6 +386,8 @@ function! ale#completion#ParseLSPCompletions(response) abort
|
||||
if get(l:item, 'insertTextFormat') is s:LSP_INSERT_TEXT_FORMAT_PLAIN
|
||||
\&& type(get(l:item, 'textEdit')) is v:t_dict
|
||||
let l:text = l:item.textEdit.newText
|
||||
elseif type(get(l:item, 'insertText')) is v:t_string
|
||||
let l:text = l:item.insertText
|
||||
else
|
||||
let l:text = l:item.label
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user