mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Fix #2800 - Ignore completion user data which is not a dictionary
This commit is contained in:
@@ -734,6 +734,10 @@ function! ale#completion#HandleUserData(completed_item) abort
|
|||||||
|
|
||||||
let l:user_data = json_decode(l:user_data_json)
|
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', [])
|
for l:code_action in get(l:user_data, 'codeActions', [])
|
||||||
call ale#code_action#HandleCodeAction(l:code_action)
|
call ale#code_action#HandleCodeAction(l:code_action)
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user