Fix #2800 - Ignore completion user data which is not a dictionary
This commit is contained in:
parent
e8de12c9f0
commit
3fe2223a48
1 changed files with 4 additions and 0 deletions
|
@ -734,6 +734,10 @@ function! ale#completion#HandleUserData(completed_item) abort
|
|||
|
||||
let l:user_data = json_decode(l:user_data_json)
|
||||
|
||||
if type(l:user_data) isnot v:t_dict
|
||||
return
|
||||
endif
|
||||
|
||||
for l:code_action in get(l:user_data, 'codeActions', [])
|
||||
call ale#code_action#HandleCodeAction(l:code_action)
|
||||
endfor
|
||||
|
|
Reference in a new issue