Fix a bug when code actions have no changes

This commit is contained in:
w0rp 2021-05-04 08:44:28 +01:00
parent d81986a106
commit bee8eccb42
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 4 additions and 0 deletions

View File

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