Skip to content

Commit e720477

Browse files
authored
fix: check response.err instead of response.error (#473)
Should be err instead of error.
1 parent 6104149 commit e720477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/sources/lsp.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function lsp:get_completions(context, callback)
101101
local responses = {}
102102
for client_id, response in pairs(result) do
103103
-- todo: pass error upstream
104-
if response.error or response.result == nil then
104+
if response.err or response.result == nil then
105105
responses[client_id] = { is_incomplete_forward = true, is_incomplete_backward = true, items = {} }
106106

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

0 commit comments

Comments
 (0)