Skip to content

Commit

Permalink
fix: check response.err instead of response.error (#473)
Browse files Browse the repository at this point in the history
Should be err instead of error.
  • Loading branch information
jarviliam authored Dec 9, 2024
1 parent 6104149 commit e720477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/sources/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function lsp:get_completions(context, callback)
local responses = {}
for client_id, response in pairs(result) do
-- todo: pass error upstream
if response.error or response.result == nil then
if response.err or response.result == nil then
responses[client_id] = { is_incomplete_forward = true, is_incomplete_backward = true, items = {} }

-- as per the spec, we assume it's complete if we get CompletionItem[]
Expand Down

0 comments on commit e720477

Please sign in to comment.