helix/helix-view/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
..
handlers feat(dap): send Disconnect if Terminated event received (#5532) 2023-02-20 13:00:00 +09:00
base64.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
clipboard.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
document.rs feat: show current language when no argument is provided (#5895) 2023-02-16 23:48:35 +09:00
editor.rs Split modification indicator from file statusline elements (#4731) 2023-02-10 11:34:18 -06:00
env.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2022-11-02 10:12:40 +09:00
graphics.rs refactor(helix-view): remove cfg_attr references a nonexistent feature (#5630) 2023-01-22 23:34:14 +05:30
gutter.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
info.rs fix: remove unneeded allocations when calling helix_view::Info::new 2022-10-11 15:47:11 +09:00
input.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
keyboard.rs refactor(helix-view): remove cfg_attr references a nonexistent feature (#5630) 2023-01-22 23:34:14 +05:30
lib.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2023-02-01 02:03:19 +09:00
macros.rs Apply transactions to all views (#4733) 2022-11-23 12:28:49 +09:00
theme.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2023-02-01 02:03:19 +09:00
tree.rs Add configuration for min width of line-numbers gutter (#4724) 2023-01-21 14:20:59 -06:00
view.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00