Skip to content

Commit c2c7cb4

Browse files
committed
fix: check correct lsp server initialization
1 parent d631e31 commit c2c7cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/client/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ local callbacks = {}
1212
---@param overrides table<string, any>
1313
---@param client CopilotClient
1414
function M.prepare_client_config(overrides, client)
15-
if lsp.binary.initialization_failed then
15+
if lsp.initialization_failed() then
1616
client.startup_error = "initialization of copilot-language-server failed"
1717
return
1818
end

0 commit comments

Comments
 (0)