Skip to content

Commit 6102bcc

Browse files
author
Zhe Yu
committed
logger for copilot chat.
1 parent 2a21897 commit 6102bcc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/vectorcode/integrations/copilotchat.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
local async = require("plenary.async")
88
local vc_config = require("vectorcode.config")
9+
local logger = vc_config.logger
910
local notify_opts = vc_config.notify_opts
1011
local check_cli_wrap = vc_config.check_cli_wrap
1112
local job_runner = nil
@@ -47,6 +48,7 @@ local make_context_provider = check_cli_wrap(function(opts)
4748
max_num = 5,
4849
use_lsp = vc_config.get_user_config().async_backend == "lsp",
4950
}, opts or {})
51+
logger.info("Creating CopilotChat context provider with the following opts:\n", opts)
5052

5153
local utils = require("CopilotChat.utils")
5254

@@ -86,7 +88,7 @@ local make_context_provider = check_cli_wrap(function(opts)
8688
if try_root ~= nil then
8789
vim.list_extend(args, { "--project_root", try_root })
8890
end
89-
91+
logger.info("CopilotChat ctx provider called with the following args: ", args)
9092
local result, err = run_job(args, opts.use_lsp, source.bufnr)
9193
if utils.empty(result) and err then
9294
error(utils.make_string(err))

0 commit comments

Comments
 (0)