Skip to content

Commit

Permalink
fix: disable env var check in health check
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Mar 17, 2024
1 parent 5d612fc commit 1999294
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions lua/codecompanion/health.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local config = require("codecompanion.config")

local start = vim.health.start or vim.health.report_start
local ok = vim.health.ok or vim.health.report_ok
local info = vim.health.info or vim.health.report_info
Expand Down Expand Up @@ -90,19 +88,19 @@ function M.check()
end
end

for _, name in ipairs(M.adapters) do
local adapter = require("codecompanion.adapters." .. name)

if adapter.env then
for _, v in pairs(adapter.env) do
if env_available(v) then
ok(fmt("%s key found (%s)", name, v))
else
warn(fmt("%s key not found (%s)", name, v))
end
end
end
end
-- for _, name in ipairs(M.adapters) do
-- local adapter = require("codecompanion.adapters." .. name)
--
-- if adapter.env then
-- for _, v in pairs(adapter.env) do
-- if env_available(v) then
-- ok(fmt("%s key found (%s)", name, v))
-- else
-- warn(fmt("%s key not found (%s)", name, v))
-- end
-- end
-- end
-- end
end

return M

0 comments on commit 1999294

Please sign in to comment.