aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src/types.rs
Commit message (Collapse)AuthorAge
* feat(dap): implement Restart request (#5651)Filip Dutescu2023-03-06
| | | | | | | | | | | | | | | Add a restart debug session command, which would issue a [Restart Request][1], if the debugger supports it and a session is running. It uses the same arguments and requests used to start the initial session, when recreating it. It builds upon #5532, making use of the changes to the termination workflow of a session. [1]: https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Restart Closes: #5594 Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
* feat(dap): send Disconnect if Terminated event received (#5532)Filip Dutescu2023-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Resolve a bunch of upcoming clippy lintsBlaž Hrastnik2022-11-04
|
* feat(csharp,debug): add C# debugger support (#4213)Filip Dutescu2022-10-15
|
* DAP: Make `cwd` required in RunTerminalArgumentsMichael Davis2022-07-05
| | | | | The spec has `cwd` in `RunInTerminalRequestArguments` as non-optional: https://microsoft.github.io/debug-adapter-protocol/specification#Reverse_Requests_RunInTerminal
* DAP: Skip serializing `Option`s when `None`Michael Davis2022-07-05
| | | | | | | | | | | | | DAP follows the same strict TypeScript interface syntax as LSP which states: > The document uses TypeScript interfaces in strict mode to describe > these. This means for example that a `null` value has to be explicitly > listed and that a mandatory property must be listed even if a falsify > value might exist. So we have to skip serializing any fields that end in `?` instead of passing `null`.
* Reuse menu::Item trait in picker (#2814)Gokul Soumya2022-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor menu::Item to accomodate external state Will be useful for storing editor state when reused by pickers. * Add some type aliases for readability * Reuse menu::Item trait in picker This opens the way for merging the menu and picker code in the future, since a picker is essentially a menu + prompt. More excitingly, this change will also allow aligning items in the picker, which would be useful (for example) in the command palette for aligning the descriptions to the left and the keybinds to the right in two separate columns. The item formatting of each picker has been kept as is, even though there is room for improvement now that we can format the data into columns, since that is better tackled in a separate PR. * Rename menu::Item::EditorData to Data * Call and inline filter_text() in sort_text() completion * Rename diagnostic picker's Item::Data
* dap: Reply to RunInTerminalBlaž Hrastnik2021-12-06
|
* dap: Add RunInTerminal reverse request, support replying to requestsBlaž Hrastnik2021-12-03
|
* dap: Consistently rename type as tyBlaž Hrastnik2021-11-07
|
* dap: Remove Deref for DebuggerCapabilitiesBlaž Hrastnik2021-11-07
| | | | Looks like a mistake
* Use a newtype for ThreadIdBlaž Hrastnik2021-10-17
|
* editor: support setExceptionBreakpointsDmitry Sharshakov2021-09-26
|
* compat: make thread IDs signedDmitry Sharshakov2021-09-03
| | | | Delve needs it
* Defaults in completions, better schemaDmitry Sharshakov2021-08-29
|
* wip: refactor parameters in UI startDmitry Sharshakov2021-08-29
|
* Customized completion for template parametersDmitry Sharshakov2021-08-28
|
* Support templates in debug configurationsDmitry Sharshakov2021-08-24
|
* FormatDmitry Sharshakov2021-08-24
|
* Create new debugger config formatDmitry Sharshakov2021-08-24
|
* fix freeze with lldb terminated eventDmitry Sharshakov2021-08-23
|
* types: make some fields optional as in specDmitry Sharshakov2021-08-23
|
* config: minor fixesDmitry Sharshakov2021-08-23
|
* Enable stdio transport via configDmitry Sharshakov2021-08-23
|
* Add debug-adapter field to languages.tomlDmitry Sharshakov2021-08-23
|
* Fix line endingsDmitry Sharshakov2021-08-22
|
* Add eval commandDmitry Sharshakov2021-08-22
|
* dap: support stepIn, stepOut, next and pause commandsDmitry Sharshakov2021-08-22
|
* Add more event types, simplify event decodingBlaž Hrastnik2021-08-22
|
* dap: Split out launch from initBlaž Hrastnik2021-08-20
|
* Add Default to some structsBlaž Hrastnik2021-08-20
|
* fix: Used the wrong type for variablesBlaž Hrastnik2021-08-20
|
* dap: Significantly simplify code using the Request traitBlaž Hrastnik2021-08-20
|
* Refactor types, add a Request traitBlaž Hrastnik2021-08-20
|
* dap: Split types off into types.rsBlaž Hrastnik2021-08-20