Merge pull request #12324 from alindeman/nil-code-actions

This commit is contained in:
Hirokazu Hata
2020-05-16 11:58:54 +09:00
committed by GitHub

View File

@@ -19,7 +19,7 @@ M['workspace/executeCommand'] = function(err, _)
end end
M['textDocument/codeAction'] = function(_, _, actions) M['textDocument/codeAction'] = function(_, _, actions)
if vim.tbl_isempty(actions) then if actions == nil or vim.tbl_isempty(actions) then
print("No code actions available") print("No code actions available")
return return
end end