aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-03-20 10:10:01 +0000
committerGitHub <noreply@github.com>2022-03-20 10:10:01 +0000
commit315858bf67599d39c38628cd2ab8bff1074d7fe4 (patch)
treefde0fb6c731d647eb6af38e7b47bbf5dfec0e0c6 /runtime/lua/vim/lsp/util.lua
parent75157d2572248c330858586fa23649e7acf33416 (diff)
downloadrneovim-315858bf67599d39c38628cd2ab8bff1074d7fe4.tar.gz
rneovim-315858bf67599d39c38628cd2ab8bff1074d7fe4.tar.bz2
rneovim-315858bf67599d39c38628cd2ab8bff1074d7fe4.zip
fix(termdebug): handle exiting during startup properly (#16790)
s:EndTermDebug should only be called when exiting if the debugger started without error, otherwise the plugin breaks. Vim handles this by using job_setoptions to set the on_exit callback to s:EndTermDebug after startup succeeds. However, Nvim does not have such functionality; instead; use s:starting to mimic this behaviour. Also, introduce s:running to fix s:CheckGdbRunning; it did not work correctly due to the "[Process exited X]" message keeping the job's channel alive (though the stream is closed). This means nvim_get_chan_info cannot be used to check if the debugger has exited, as it may still return a non-empty dict.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions