File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function mod.notify_change_configuration(client, params)
4646end
4747
4848--- @alias copilot_check_status_params { options ?: { localChecksOnly ?: boolean } }
49- --- @alias copilot_check_status_data { user ?: string }
49+ --- @alias copilot_check_status_data { user ?: string , status : ' OK ' | ' NotAuthorized ' | ' NoTelemetryConsent ' }
5050
5151--- @param params ? copilot_check_status_params
5252--- @return any | nil err
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ function mod.status()
6666 if not status .user then
6767 flush_lines (" Not authenticated. Run ':Copilot auth'" )
6868 return
69+ elseif status .status == ' NoTelemetryConsent' then
70+ flush_lines (" Telemetry terms not accepted" )
71+ return
72+ elseif status .status == ' NotAuthorized' then
73+ flush_lines (" Not authorized" )
74+ return
6975 end
7076
7177 local should_attach , no_attach_reason = u .should_attach (c .params .filetypes )
You can’t perform that action at this time.
0 commit comments