diff options
| author | Jose Alvarez <j.alvarez11@icloud.com> | 2021-09-22 02:37:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-22 08:37:45 +0200 |
| commit | a005e58a48645da5aeeeedf7c7788abfde7d07dc (patch) | |
| tree | 07d831679b641c2ea80aaa8debe3c990a2b522db /lua/telescope | |
| parent | 60660334c70d9d81dccc10a563e01920b9455e76 (diff) | |
fix(lsp): check if action.command.arguments is nil (#1274)
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
