Skip to content

Commit 6e43536

Browse files
committed
refactor: remove instances of ctx logging
1 parent c0a8d3e commit 6e43536

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/copilot/suggestion/init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ end
107107

108108
---@param ctx copilot_suggestion_context
109109
local function reset_ctx(ctx)
110-
logger.trace("suggestion reset context", ctx)
110+
logger.trace("suggestion reset context")
111111
ctx.first = nil
112112
ctx.cycling = nil
113113
ctx.cycling_callbacks = nil
@@ -213,7 +213,7 @@ end
213213

214214
---@param ctx? copilot_suggestion_context
215215
local function cancel_inflight_requests(ctx)
216-
logger.trace("suggestion cancel inflight requests", ctx)
216+
logger.trace("suggestion cancel inflight requests")
217217
ctx = ctx or get_ctx()
218218

219219
with_client(function(client)
@@ -238,9 +238,9 @@ end
238238
---@param ctx? copilot_suggestion_context
239239
---@return copilot_get_completions_data_completion?
240240
local function get_current_suggestion(ctx)
241-
logger.trace("suggestion get current suggestion", ctx)
241+
logger.trace("suggestion get current suggestion")
242242
ctx = ctx or get_ctx()
243-
logger.trace("suggestion current suggestion", ctx)
243+
logger.trace("suggestion current suggestion")
244244

245245
local ok, choice = pcall(function()
246246
if
@@ -346,7 +346,7 @@ end
346346

347347
---@param ctx? copilot_suggestion_context
348348
local function clear(ctx)
349-
logger.trace("suggestion clear", ctx)
349+
logger.trace("suggestion clear")
350350
ctx = ctx or get_ctx()
351351
stop_timer()
352352
cancel_inflight_requests(ctx)

0 commit comments

Comments
 (0)