Fix #2800 - Ignore completion user data which is not a dictionary

This commit is contained in:
w0rp 2019-10-09 10:12:31 +01:00
parent e8de12c9f0
commit 3fe2223a48
No known key found for this signature in database
GPG key ID: 0FC1ECAA8C81CD83

View file

@ -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