aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src
Commit message (Collapse)AuthorAge
* Improve error handling for `which::which` failuresMichael Davis2024-01-24
| | | | Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
* Re-export `which` from `helix-stdx::env`Michael Davis2024-01-24
| | | | | | | | | | We use `which::which` in many crates, so `which` was a separate dependency across all of them. We can centralize `which` into the stdx crate so it's easy for all crates to depend on it. I also moved the rest of `helix-view/src/env.rs` into helix-stdx's `env` module since it only contained a thin wrapper around `which` and `std::env`.
* remove build warnings (#9180)Tshepang Mbambo2024-01-04
|
* Fix unwrap bug in DAP (#6786)A-Walrus2023-04-17
|
* feat(debug): highlight current line (#5957)Filip Dutescu2023-03-29
| | | | | | | | | | | | | | | | | | Add new theme highlight keys, for setting the colour of the breakpoint character and the current line at which execution has been paused at. The two new keys are `ui.highlight.frameline` and `ui.debug.breakpoint`. Highlight according to those keys, both the line at which debugging is paused at and the breakpoint indicator. Add an indicator for the current line at which execution is paused at, themed by the `ui.debug.active` theme scope. Update various themes to showcase how the new functionality works. Better icons are dependent on #2869, and as such will be handled in the future, once it lands. Closes: #5952 Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
* 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>
* DAP: Add request ID to request timeout message (#6018)xiaoma200820082023-02-16
| | | | This improves error logging for dap requests. Without the ID it's hard to know which request is the one that timed out.
* Fix name of channel endpoints in DAP client (#5366)taupiqueur2023-01-11
|
* 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
* Use which to resolve lsp/dap binariesBlaž Hrastnik2022-02-24
| | | | This resolves the following issue: https://github.com/helix-editor/helix/discussions/962#discussioncomment-1580046
* dap: Reduce amount of block_on usesBlaž Hrastnik2022-02-15
|
* Merge remote-tracking branch 'origin/master' into debugBlaž Hrastnik2022-02-13
|
* Make thread_picker non-blockingBlaž Hrastnik2021-12-06
|
* dap: Reply to RunInTerminalBlaž Hrastnik2021-12-06
|
* dap: Add RunInTerminal reverse request, support replying to requestsBlaž Hrastnik2021-12-03
|
* dap: All of these calls don't need &mutBlaž Hrastnik2021-12-03
|
* Make dap_start non-blockingBlaž Hrastnik2021-12-03
|
* dap: Split call/request in the same way LSP doesBlaž Hrastnik2021-12-03
|
* dap: Start working on runInTerminal supportBlaž Hrastnik2021-12-03
|
* dap: Rewrite breakpoints so that there's a single set maintainedBlaž Hrastnik2021-11-30
|
* dap: Consistently rename type as tyBlaž Hrastnik2021-11-07
|
* dap: Remove Deref for DebuggerCapabilitiesBlaž Hrastnik2021-11-07
| | | | Looks like a mistake
* dap: Get rid of excessive cloningBlaž Hrastnik2021-11-07
|
* Use a newtype for ThreadIdBlaž Hrastnik2021-10-17
|
* Invert core -> dap dependencyBlaž Hrastnik2021-10-17
|
* Port over parsing improvements from the LSPBlaž Hrastnik2021-10-17
| | | | | We need to terminate if we ever read 0 bytes which indicates closed stream.
* fix lintsDmitry Sharshakov2021-09-26
|
* editor: add Node.js debuggerDmitry Sharshakov2021-09-26
|
* editor: support setExceptionBreakpointsDmitry Sharshakov2021-09-26
|
* lldb: use stdio transport by defaultDmitry Sharshakov2021-09-06
|
* Get breakpoint reports from debuggerDmitry Sharshakov2021-09-06
|
* compat: make thread IDs signedDmitry Sharshakov2021-09-03
| | | | Delve needs it
* Handle stderrBlaž Hrastnik2021-09-03
|
* dap: Allow setting breakpoints before starting the adapterBlaž Hrastnik2021-09-03
|
* dap: small TODOBlaž Hrastnik2021-09-03
|
* dap: Extract thread_picker, make pause explicitly select a threadBlaž Hrastnik2021-09-03
|
* dap: Extract a thread_states mapBlaž Hrastnik2021-09-03
|
* dap: refactor frame handlingBlaž Hrastnik2021-08-30
|
* dap: Remap keys, match current thread behavior from dap-mode, switch-threadBlaž Hrastnik2021-08-29
|
* 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
|