mirror of https://github.com/dense-analysis/ale
Fix a bug when code actions have no changes
This commit is contained in:
parent
d81986a106
commit
bee8eccb42
|
@ -247,6 +247,10 @@ function! s:UpdateCursor(cursor, start, end, offset) abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#code_action#GetChanges(workspace_edit) abort
|
function! ale#code_action#GetChanges(workspace_edit) abort
|
||||||
|
if a:workspace_edit is v:null
|
||||||
|
return {}
|
||||||
|
endif
|
||||||
|
|
||||||
let l:changes = {}
|
let l:changes = {}
|
||||||
|
|
||||||
if has_key(a:workspace_edit, 'changes') && !empty(a:workspace_edit.changes)
|
if has_key(a:workspace_edit, 'changes') && !empty(a:workspace_edit.changes)
|
||||||
|
|
Loading…
Reference in New Issue