Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lua/copilot/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local M = {
node_version = nil,
node_version_error = nil,
startup_error = nil,
initialized = false,
}

---@param id number
Expand Down Expand Up @@ -216,6 +217,7 @@ local function prepare_client_config(overrides)
vim.notify(string.format("[copilot] setEditorInfo failure: %s", err), vim.log.levels.ERROR)
end
end)
M.initialized = true
end)
end,
on_exit = function(code, _signal, client_id)
Expand Down
2 changes: 1 addition & 1 deletion lua/copilot/suggestion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ local function advance(count, ctx)
end

local function schedule(ctx)
if not is_enabled() then
if not is_enabled() or not c.initialized then
clear()
return
end
Expand Down