We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c54ebfd commit 688762aCopy full SHA for 688762a
lua/copilot/client.lua
@@ -207,7 +207,13 @@ local function prepare_client_config(overrides)
207
end)
208
209
end,
210
- on_exit = function(_code, _signal, client_id)
+ on_exit = function(code, _signal, client_id)
211
+ if code > 0 then
212
+ vim.schedule(function()
213
+ -- in case for unsupported node
214
+ M.get_node_version()
215
+ end)
216
+ end
217
if M.id == client_id then
218
M.id = nil
219
M.capabilities = nil
0 commit comments