Skip to content

Commit a998e15

Browse files
committed
fix(suggestion): abort callback on error
1 parent d38c395 commit a998e15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/copilot/suggestion.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ local function get_suggestions_cycling_callback(state, err, data)
264264

265265
if err then
266266
print(err)
267+
return
267268
end
268269

269270
local seen = {}

0 commit comments

Comments
 (0)