From a005e58a48645da5aeeeedf7c7788abfde7d07dc Mon Sep 17 00:00:00 2001 From: Jose Alvarez Date: Wed, 22 Sep 2021 02:37:45 -0400 Subject: [PATCH] fix(lsp): check if action.command.arguments is nil (#1274) --- lua/telescope/builtin/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua index 59cd1f9..892d9e8 100644 --- a/lua/telescope/builtin/lsp.lua +++ b/lua/telescope/builtin/lsp.lua @@ -255,7 +255,7 @@ lsp.code_actions = function(opts) -- Is only run on lsp codeactions which contain a comand or a arguments field -- Fixed Java/jdtls compatibility with Telescope -- See fix_zero_version commentary for more information - if action.command or action.arguments then + if (action.command and action.command.arguments) or action.arguments then if action.command.command then action.edit = fix_zero_version(action.command.arguments[1]) else