From bee8eccb421968d1f2628c15e9f2bfcc3d0418aa Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 4 May 2021 08:44:28 +0100 Subject: [PATCH] Fix a bug when code actions have no changes --- autoload/ale/code_action.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/ale/code_action.vim b/autoload/ale/code_action.vim index be4a25da..917190be 100644 --- a/autoload/ale/code_action.vim +++ b/autoload/ale/code_action.vim @@ -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)