Skip to content

Commit 8400be8

Browse files
committed
refactor(tools): remove cmp execute function
1 parent e5ffe54 commit 8400be8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lua/cmp_codecompanion/tools.lua

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,4 @@ function source:complete(params, callback)
4646
})
4747
end
4848

49-
---Execute selected item
50-
---@param item table The selected item from the completion menu
51-
---@param callback function
52-
---@return nil
53-
function source:execute(item, callback)
54-
local Chat = require("codecompanion").buf_get_chat(item.context.bufnr)
55-
Chat:add_tool(item)
56-
57-
callback(item)
58-
vim.bo[item.context.bufnr].buflisted = false
59-
end
60-
6149
return source

0 commit comments

Comments
 (0)