Skip to content

Commit 1c11d05

Browse files
committed
refactor: remove some context logging
1 parent 7afef52 commit 1c11d05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lua/copilot/suggestion/init.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ end
5252
local function get_ctx(bufnr)
5353
bufnr = bufnr or vim.api.nvim_get_current_buf()
5454
local ctx = copilot.context[bufnr]
55-
logger.trace("suggestion context", ctx)
55+
5656
if not ctx then
5757
ctx = {}
5858
copilot.context[bufnr] = ctx
59-
logger.trace("suggestion new context", ctx)
59+
logger.trace("suggestion new context")
6060
end
61+
6162
return ctx
6263
end
6364

@@ -526,7 +527,7 @@ end
526527
---@return boolean
527528
function M.first_request_scheduled(ctx, caller_context)
528529
if not ctx.first then
529-
logger.trace("suggestion " .. caller_context .. ", no first request", ctx)
530+
logger.trace("suggestion " .. caller_context .. ", no first request")
530531
request_suggestion(caller_context)
531532
return true
532533
end

0 commit comments

Comments
 (0)