helix/helix-term/src
Filip Dutescu e3765ac6d2
feat(dap): send Disconnect if Terminated event received (#5532)
Send a `Disconnect` DAP request if the `Terminated` event is received.
According to the specification, if the debugging session was started by
as `launch`, the debuggee should be terminated alongside the session. If
instead the session was started as `attach`, it should not be disposed of.

This default behaviour can be overriden if the `supportTerminateDebuggee`
capability is supported by the adapter, through the `Disconnect` request
`terminateDebuggee` argument, as described in
[the specification][discon-spec].

This also implies saving the starting command for a debug sessions, in
order to decide which behaviour should be used, as well as validating the
capabilities of the adapter, in order to decide what the disconnect should
do.

An additional change made is handling of the `Exited` event, showing a
message if the exit code is different than `0`, for the user to be aware
off the termination failure.

[discon-spec]: https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disconnect

Closes: #4674

Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
2023-02-20 13:00:00 +09:00
..
commands feat(dap): send Disconnect if Terminated event received (#5532) 2023-02-20 13:00:00 +09:00
keymap rework positioning/rendering and enable softwrap/virtual text (#5420) 2023-02-01 02:03:19 +09:00
ui feat: show current language when no argument is provided (#5895) 2023-02-16 23:48:35 +09:00
application.rs Ignore invalid file URIs from LSP (#6000) 2023-02-16 14:17:18 +09:00
args.rs Fix confusion with using --hsplit --vsplit on startup at same time (#4202) 2022-10-11 09:25:42 -04:00
commands.rs Replace incorrect usages of tab_width with indent_width. (#5918) 2023-02-16 23:47:59 +09:00
compositor.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs Print the binary required by the debug adapter (#5195) 2022-12-17 13:03:18 -06:00
job.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
keymap.rs keymap: Test backslash escaping in commands 2023-01-25 09:31:58 -06:00
lib.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
main.rs feat(lsp): pass client_info on initialization (#4904) 2022-12-08 21:57:03 -06:00