Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | feat(dap): send Disconnect if Terminated event received (#5532) | Filip Dutescu | 2023-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> | ||
* | Replace menu::Item::{row, label} with format() | Gokul Soumya | 2023-01-18 |
| | |||
* | Add preview for scratch buffers in buffer picker (#3454) | A-Walrus | 2022-11-21 |
| | |||
* | remove Callback::Compositor variant | Skyler Hawthorne | 2022-10-19 |
| | | | | To reduce likelihood of accidental discarding of important callbacks | ||
* | fix write-quit with auto format | Skyler Hawthorne | 2022-10-19 |
| | | | | | write-quit will now save all files successfully even when there is auto formatting | ||
* | fix: Recalculate completion when going through prompt history (#3193) | Frojdholm | 2022-08-31 |
| | | | | | | | | | | | | | | | | | | | | | | | | * fix: Recalculate completion when going through prompt history * Update completion when the prompt line is changed It should not be possible to update the line without also updating the completion since the completion holds an index into the line. * Fix Prompt::with_line recalculate completion with_line was the last function where recalculate completion had to be done manually. This function now also recalculates the completion so that it's impossible to forget. * Exit selection when recalculating completion Keeping the selection index when the completion has been recalculated doesn't make sense. This clears the selection automatically, removing most needs to manually clear it. * Remove &mut on save_filter Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> | ||
* | Add cwd parameter which is not optional anymore (#3240) | Danilo Spinella | 2022-07-31 |
| | |||
* | Reuse menu::Item trait in picker (#2814) | Gokul Soumya | 2022-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 | ||
* | Strip some more params | Blaž Hrastnik | 2022-03-28 |
| | |||
* | Split off dap event handlers into helix-view to allow reuse | Blaž Hrastnik | 2022-03-28 |
| | |||
* | Bump dependencies | Blaž Hrastnik | 2022-03-08 |
| | |||
* | dap: fix runInTerminal with lldb-vscode | Blaž Hrastnik | 2022-02-18 |
| | |||
* | Refactor symbol picker to share code | Blaž Hrastnik | 2022-02-18 |
| | |||
* | helix-term: implement buffer completer | Cole Helbling | 2022-02-17 |
| | | | | | | In order to implement this completer, the completion function needs to be able to access the compositor's context (to allow it to get the list of buffers currently open in the context's editor). | ||
* | Allow static strings in set_status/set_error so API is nicer | Blaž Hrastnik | 2022-02-15 |
| | |||
* | dap: Reduce amount of block_on uses | Blaž Hrastnik | 2022-02-15 |
| | |||
* | .. | Blaž Hrastnik | 2022-02-15 |
| | |||
* | Fix build on master | Blaž Hrastnik | 2022-02-15 |
| | |||
* | Merge remote-tracking branch 'origin/master' into debug | Blaž Hrastnik | 2022-02-13 |
| | |||
* | wip | Blaž Hrastnik | 2021-12-13 |
| | |||
* | dap: Improve variables UI | Blaž Hrastnik | 2021-12-09 |
| | |||
* | TODO | Blaž Hrastnik | 2021-12-09 |
| | |||
* | dap: Simplify a few more statements that could use the debugger macro | Blaž Hrastnik | 2021-12-09 |
| | |||
* | dap: Extract a macro that fetches a debugger or returns | Blaž Hrastnik | 2021-12-07 |
| | |||
* | dap: Fix an off-by-one error when jumping | Blaž Hrastnik | 2021-12-07 |
| | |||
* | clippy lint | Blaž Hrastnik | 2021-12-06 |
| | |||
* | Make thread_picker non-blocking | Blaž Hrastnik | 2021-12-06 |
| | |||
* | Apply suggestions from code review | Blaž Hrastnik | 2021-12-06 |
| | | | Co-authored-by: Gokul Soumya <gokulps15@gmail.com> | ||
* | Make dap_start non-blocking | Blaž Hrastnik | 2021-12-03 |
| | |||
* | dap: Start working on runInTerminal support | Blaž Hrastnik | 2021-12-03 |
| | |||
* | Simplify some cases that use return None to use ? | Blaž Hrastnik | 2021-12-02 |
| | |||
* | dap: Use cursor_line over cursor + char_to_line | Blaž Hrastnik | 2021-12-02 |
| | |||
* | dap: Fix an off-by-one and move the function over to commands/dap | Blaž Hrastnik | 2021-12-02 |
| | |||
* | dap: Remove some unwraps | Blaž Hrastnik | 2021-12-02 |
| | |||
* | Mark some more TODOs as resolved | Blaž Hrastnik | 2021-12-01 |
| | |||
* | These TODOs have been resolved | Blaž Hrastnik | 2021-12-01 |
| | |||
* | dap: Rewrite breakpoints so that there's a single set maintained | Blaž Hrastnik | 2021-11-30 |
| | |||
* | Pass editor into render_view & gutter, reducing the number of params | Blaž Hrastnik | 2021-11-30 |
| | |||
* | dap: Toggle breakpoints without changing selection, fix offset calc | Blaž Hrastnik | 2021-11-22 |
| | |||
* | dap: Always edit breakpoints on the correct document | Blaž Hrastnik | 2021-11-22 |
| | |||
* | dap: Remove the prompt line parameter, use insert_str instead | Blaž Hrastnik | 2021-11-22 |
| | |||
* | dap: Modify breakpoints in place with no cloning | Blaž Hrastnik | 2021-11-22 |
| | |||
* | dap: Remove an excess clone on enable_exceptions | Blaž Hrastnik | 2021-11-21 |
| | |||
* | dap: Simplify debug_parameter_prompt | Blaž Hrastnik | 2021-11-07 |
| | |||
* | dap: Clean up dap_start_impl, no need to clone arg keys | Blaž Hrastnik | 2021-11-07 |
| | |||
* | dap: Minor simplifications | Blaž Hrastnik | 2021-11-07 |
| | |||
* | dap: Simplify launch & start | Blaž Hrastnik | 2021-11-07 |
| | | | | | There's no need to re-detect language config, just use the one available on the document. | ||
* | dap: Error implements Display so we can format with {} | Blaž Hrastnik | 2021-11-07 |
| | |||
* | dap: Consistently rename type as ty | Blaž Hrastnik | 2021-11-07 |
| | |||
* | dap: Avoid cloning old_breakpoints if we are immediately replacing them | Blaž Hrastnik | 2021-11-07 |
| |