Skip to content

Commit

Permalink
Send code 0 in shutdown to propagate error message properly
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Nov 15, 2024
1 parent 85a1679 commit 78ea730
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/CopilotChat/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,7 @@ function Copilot:ask(prompt, opts)
end

finished = true
vim.schedule(function()
job:shutdown()
end)
job:shutdown(0)
end

local function stream_func(err, line, job)
Expand Down

0 comments on commit 78ea730

Please sign in to comment.