mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-21 00:58:34 +08:00
Fix a bug when code actions have no changes
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user