Skip to content

Commit

Permalink
Fix a bug when code actions have no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rp committed May 4, 2021
1 parent d81986a commit bee8ecc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/ale/code_action.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bee8ecc

Please sign in to comment.