Skip to content

Commit e478454

Browse files
authored
fix(lsp/codeAction): don't try to execute unknown commands (#756)
1 parent 63e79de commit e478454

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lua/rustaceanvim/commands/code_action_group.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ function M.apply_action(action, client, ctx)
3333
local fn = vim.lsp.commands[command.command]
3434
if fn then
3535
fn(command, ctx)
36-
elseif type(command) == 'string' then
37-
local tools = config.tools
38-
pcall(tools.executor.execute_command, command, {})
3936
end
4037
end
4138
end

0 commit comments

Comments
 (0)