diff options
| author | Rafael Delboni <rafadelboni@gmail.com> | 2021-10-12 18:17:42 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-12 23:17:42 +0200 |
| commit | b5c63c6329cff8dd8e23047eecd1f581379f1587 (patch) | |
| tree | e1ae2f5d06967db33b1d4f06e1c439568851e04e /lua | |
| parent | c19eae901cb6e03dc44c68f768133c885ce5bafc (diff) | |
fix: Bug with nil action error (#1340)
only affects 0.5.1
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/lsp.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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)) |
