We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c7701a commit 713f173Copy full SHA for 713f173
2 files changed
lua/copilot/auth/init.lua
@@ -268,7 +268,7 @@ local function check_status(client, callback)
268
269
if not err and status and status.user then
270
auth_cache.authenticated = true
271
- elseif not err then
+ else
272
auth_cache.authenticated = false
273
end
274
lua/copilot/suggestion/init.lua
@@ -471,6 +471,10 @@ end
471
472
---@param bufnr? integer
473
local function schedule(bufnr)
474
+ if not auth.is_gate_passed() then
475
+ return
476
+ end
477
+
478
local function is_authenticated()
479
return auth.is_authenticated(function(err)
480
if err then
0 commit comments