Gokul Soumya
6e2aaed5c2
Reuse menu::Item trait in picker ( #2814 )
...
* 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
2 years ago
Blaž Hrastnik
9712bbb23b
Use which to resolve lsp/dap binaries
...
This resolves the following issue: https://github.com/helix-editor/helix/discussions/962#discussioncomment-1580046
3 years ago
Blaž Hrastnik
fd0e4b1159
dap: Reduce amount of block_on uses
3 years ago
Blaž Hrastnik
dc8df7ba21
Make thread_picker non-blocking
3 years ago
Blaž Hrastnik
2b4de41bf0
dap: Reply to RunInTerminal
3 years ago
Blaž Hrastnik
5545f8ebb5
dap: Add RunInTerminal reverse request, support replying to requests
3 years ago
Blaž Hrastnik
bcf70d8e67
dap: All of these calls don't need &mut
3 years ago
Blaž Hrastnik
43fbb6d965
Make dap_start non-blocking
3 years ago
Blaž Hrastnik
032aaffa15
dap: Split call/request in the same way LSP does
3 years ago
Blaž Hrastnik
2dbf966293
dap: Start working on runInTerminal support
3 years ago
Blaž Hrastnik
8ffafb826f
dap: Rewrite breakpoints so that there's a single set maintained
3 years ago
Blaž Hrastnik
9baddc825d
dap: Get rid of excessive cloning
3 years ago
Blaž Hrastnik
bda05ec4bf
Use a newtype for ThreadId
3 years ago
Blaž Hrastnik
83a8167402
Invert core -> dap dependency
3 years ago
Dmitry Sharshakov
814dcfa8d2
fix lints
3 years ago
Dmitry Sharshakov
d943a51e3e
editor: add Node.js debugger
3 years ago
Dmitry Sharshakov
0e51e5fbaf
editor: support setExceptionBreakpoints
3 years ago
Dmitry Sharshakov
413e477dc2
lldb: use stdio transport by default
3 years ago
Dmitry Sharshakov
507a1f8dd6
Get breakpoint reports from debugger
3 years ago
Dmitry Sharshakov
cf7237d0b9
compat: make thread IDs signed
...
Delve needs it
3 years ago
Blaž Hrastnik
7b61c63ece
Handle stderr
3 years ago
Blaž Hrastnik
b997d2cdeb
dap: Allow setting breakpoints before starting the adapter
3 years ago
Blaž Hrastnik
289303a30d
dap: small TODO
3 years ago
Blaž Hrastnik
42f9718f55
dap: Extract thread_picker, make pause explicitly select a thread
3 years ago
Blaž Hrastnik
27c1b3f98b
dap: Extract a thread_states map
3 years ago
Blaž Hrastnik
2c7b75475f
dap: refactor frame handling
3 years ago
Blaž Hrastnik
986828e75c
dap: Remap keys, match current thread behavior from dap-mode, switch-thread
3 years ago
Dmitry Sharshakov
b42631942b
Defaults in completions, better schema
3 years ago
Dmitry Sharshakov
0e779381a8
Format
3 years ago
Dmitry Sharshakov
c463142e5e
Create new debugger config format
3 years ago
Dmitry Sharshakov
34c6094604
refactor
3 years ago
Dmitry Sharshakov
2158366b24
Enable variable types in DAP config
...
We have this feature
3 years ago
Dmitry Sharshakov
fdad7d67aa
Check capabilities for breakpoint config
3 years ago
Dmitry Sharshakov
839d210573
Enable stdio transport via config
3 years ago
Dmitry Sharshakov
c5b210df59
Add debug-adapter field to languages.toml
3 years ago
Dmitry Sharshakov
3197c2536e
Add eval command
3 years ago
Dmitry Sharshakov
d93cd2a261
editor: support stepIn, stepOut, next and pause commands
3 years ago
Dmitry Sharshakov
dfc70a12f3
dap: support stepIn, stepOut, next and pause commands
3 years ago
Dmitry Sharshakov
f3e47bfee4
Disable continuing when running
3 years ago
Dmitry Sharshakov
a938f5a87a
refactor: handle DAP events in editor main loop
3 years ago
Dmitry Sharshakov
7087558918
Don't leave debugged programs running
3 years ago
Dmitry Sharshakov
6458edecfd
Add stack pointer display when stopped
3 years ago
Blaž Hrastnik
a54b09e3fe
dap: Split out launch from init
3 years ago
Blaž Hrastnik
94a1951d40
Work towards a breakpoint UI
3 years ago
Blaž Hrastnik
8759dc7e33
Add Default to some structs
3 years ago
Blaž Hrastnik
86102a651f
wip
3 years ago
Blaž Hrastnik
2094ff1aaf
Silence TCP client messages on stdout, log them in the future
3 years ago
Blaž Hrastnik
d39baa3b4e
Start integrating into the editor's event loop
3 years ago
Blaž Hrastnik
184abdc510
dap: Significantly simplify code using the Request trait
3 years ago
Blaž Hrastnik
3a9e1c305b
Refactor types, add a Request trait
3 years ago