We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3d15c commit 045daa5Copy full SHA for 045daa5
lua/copilot/client/init.lua
@@ -66,6 +66,12 @@ function M.buf_attach(force)
66
67
-- This could cause slowdowns when going into Insert mode
68
if not vim.lsp.buf_is_attached(bufnr, M.id) then
69
+ M.ensure_client_started()
70
+
71
+ if not M.id then
72
+ return
73
+ end
74
75
vim.lsp.buf_attach_client(bufnr, M.id)
76
logger.trace("explicitly attached client to buffer")
77
end
0 commit comments