From b5c63c6329cff8dd8e23047eecd1f581379f1587 Mon Sep 17 00:00:00 2001 From: Rafael Delboni Date: Tue, 12 Oct 2021 18:17:42 -0300 Subject: fix: Bug with nil action error (#1340) only affects 0.5.1 --- lua/telescope/builtin/lsp.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua index 1f74cb9..298ef69 100644 --- a/lua/telescope/builtin/lsp.lua +++ b/lua/telescope/builtin/lsp.lua @@ -314,7 +314,11 @@ lsp.code_actions = function(opts) vim.notify(resolved_err.code .. ": " .. resolved_err.message, vim.log.levels.ERROR) return end - execute_action(transform_action(resolved_action)) + if resolved_action then + execute_action(transform_action(resolved_action)) + else + execute_action(transform_action(action)) + end end) else execute_action(transform_action(action)) -- cgit v1.2.3