mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-28 23:06:51 +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
|
||||
|
||||
function! ale#code_action#GetChanges(workspace_edit) abort
|
||||
if a:workspace_edit is v:null
|
||||
return {}
|
||||
endif
|
||||
|
||||
let l:changes = {}
|
||||
|
||||
if has_key(a:workspace_edit, 'changes') && !empty(a:workspace_edit.changes)
|
||||
|
||||
Reference in New Issue
Block a user