nvim-neotest / nvim-nio

A library for asynchronous IO in Neovim
MIT License
288 stars 8 forks source link

fix(process): return exit code instead of signal #13

Closed pysan3 closed 6 months ago

pysan3 commented 6 months ago

It looks like the first argument of on_exit is the exit code of the process.

:h uv.spawn()

uv.spawn({path}, {options}, {on_exit})                              *uv.spawn()*

                Parameters:
                - `path`: `string`
                - `options`: `table` (see below)
                - `on_exit`: `callable`
                  - `code`: `integer`
                  - `signal`: `integer`
rcarriga commented 6 months ago

Ah nice thank you!