We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62bef8e commit d88c82fCopy full SHA for d88c82f
1 file changed
lua/vectorcode/integrations/codecompanion/vectorise_tool.lua
@@ -55,6 +55,16 @@ return function(opts)
55
local stat = vim.uv.fs_stat(project_root)
56
if stat and stat.type == "directory" then
57
vim.list_extend(args, { "--project_root", project_root })
58
+ else
59
+ return { status = "error", data = "Invalid path " .. project_root }
60
+ end
61
62
+ project_root = vim.fs.root(".", { ".vectorcode", ".git" })
63
+ if project_root == nil then
64
+ return {
65
+ status = "error",
66
+ data = "Please specify a project root. You may use the `vectorcode_ls` tool to find a list of existing projects.",
67
+ }
68
end
69
70
vim.list_extend(
0 commit comments