Skip to content

Commit eff4282

Browse files
committed
feat: codecompanion feature check (prep. for #59).
1 parent eabfde9 commit eff4282

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/vectorcode/integrations/codecompanion.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ end
5151
---@param opts VectorCode.CodeCompanion.ToolOpts?
5252
---@return CodeCompanion.Agent.Tool
5353
local make_tool = check_cli_wrap(function(opts)
54+
local has = require("codecompanion").has
55+
if has ~= nil and not has("xml-tools") then
56+
error("VectorCode doesn't support the new tool format yet.")
57+
end
5458
if opts == nil or opts.use_lsp == nil then
5559
opts = vim.tbl_deep_extend(
5660
"force",

0 commit comments

Comments
 (0)