File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ function mod.notify_change_configuration(client, params)
53
53
return mod .notify (client , " notifyChangeConfiguration" , params )
54
54
end
55
55
56
+ --- @alias copilot_nofify_set_trace_params { value : ' off' | ' messages' | ' verbose' }
57
+
58
+ --- @param params copilot_nofify_set_trace_params
59
+ function mod .notify_set_trace (client , params )
60
+ return mod .notify (client , " $/setTrace" , params )
61
+ end
62
+
56
63
--- @alias copilot_check_status_params { options ?: { localChecksOnly ?: boolean } }
57
64
--- @alias copilot_check_status_data { user ?: string , status : ' OK' | ' NotAuthorized' | ' NoTelemetryConsent' }
58
65
Original file line number Diff line number Diff line change @@ -309,6 +309,12 @@ local function prepare_client_config(overrides)
309
309
end
310
310
end )
311
311
logger .trace (" setEditorInfo has been called" )
312
+
313
+ local logger_conf = config .get (" logger" ) --[[ @as copilot_config_logging]]
314
+ local trace_params = { value = logger_conf .trace_lsp } --[[ @as copilot_nofify_set_trace_params]]
315
+ logger .trace (" data for setTrace LSP call" , trace_params )
316
+ api .notify_set_trace (client , trace_params )
317
+
312
318
M .initialized = true
313
319
end )
314
320
end ,
You can’t perform that action at this time.
0 commit comments