Blaž Hrastnik
4e1b3b12f3
Refactor symbol picker to share code
2022-02-18 13:50:06 +09:00
Cole Helbling
6118486eb2
helix-term: implement buffer completer
...
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).
2022-02-17 14:02:42 +09:00
Blaž Hrastnik
d11b652139
Allow static strings in set_status/set_error so API is nicer
2022-02-15 16:45:28 +09:00
Blaž Hrastnik
fd0e4b1159
dap: Reduce amount of block_on uses
2022-02-15 16:30:23 +09:00
Blaž Hrastnik
1422449537
..
2022-02-15 11:37:33 +09:00
Blaž Hrastnik
eeb9b39857
Fix build on master
2022-02-15 10:33:55 +09:00
Blaž Hrastnik
bd549d8a20
Merge remote-tracking branch 'origin/master' into debug
2022-02-13 18:31:51 +09:00
Blaž Hrastnik
7ad8eaaef0
wip
2021-12-14 00:41:51 +09:00
Blaž Hrastnik
df3b88387b
dap: Improve variables UI
2021-12-09 11:28:53 +09:00
Blaž Hrastnik
dac317e620
TODO
2021-12-09 10:55:32 +09:00
Blaž Hrastnik
60c86eff89
dap: Simplify a few more statements that could use the debugger macro
2021-12-09 10:55:32 +09:00
Blaž Hrastnik
d8351d35ab
dap: Extract a macro that fetches a debugger or returns
2021-12-08 00:59:11 +09:00
Blaž Hrastnik
e98993d609
dap: Fix an off-by-one error when jumping
2021-12-08 00:22:48 +09:00
Blaž Hrastnik
bf8437d098
clippy lint
2021-12-06 09:36:02 +09:00
Blaž Hrastnik
dc8df7ba21
Make thread_picker non-blocking
2021-12-06 09:35:59 +09:00
Blaž Hrastnik
d5d1a9b1ae
Apply suggestions from code review
...
Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
2021-12-06 09:32:11 +09:00
Blaž Hrastnik
43fbb6d965
Make dap_start non-blocking
2021-12-03 13:27:00 +09:00
Blaž Hrastnik
2dbf966293
dap: Start working on runInTerminal support
2021-12-03 11:59:44 +09:00
Blaž Hrastnik
d14ca05d6b
Simplify some cases that use return None to use ?
2021-12-02 10:31:19 +09:00
Blaž Hrastnik
de5e5863aa
dap: Use cursor_line over cursor + char_to_line
2021-12-02 10:24:17 +09:00
Blaž Hrastnik
54f8e5c9c3
dap: Fix an off-by-one and move the function over to commands/dap
2021-12-02 10:22:17 +09:00
Blaž Hrastnik
573cb39926
dap: Remove some unwraps
2021-12-02 10:20:19 +09:00
Blaž Hrastnik
ffc89e483b
Mark some more TODOs as resolved
2021-12-01 19:28:29 +09:00
Blaž Hrastnik
b4fd3148e3
These TODOs have been resolved
2021-12-01 12:56:41 +09:00
Blaž Hrastnik
8ffafb826f
dap: Rewrite breakpoints so that there's a single set maintained
2021-11-30 17:56:00 +09:00
Blaž Hrastnik
3633f85b38
Pass editor into render_view & gutter, reducing the number of params
2021-11-30 16:47:46 +09:00
Blaž Hrastnik
85b4410703
dap: Toggle breakpoints without changing selection, fix offset calc
2021-11-22 16:30:35 +09:00
Blaž Hrastnik
b55ca8fdb8
dap: Always edit breakpoints on the correct document
2021-11-22 11:22:08 +09:00
Blaž Hrastnik
0eadeab8c7
dap: Remove the prompt line parameter, use insert_str instead
2021-11-22 11:14:10 +09:00
Blaž Hrastnik
5f329a22c4
dap: Modify breakpoints in place with no cloning
2021-11-22 11:09:09 +09:00
Blaž Hrastnik
05d3ad4a0e
dap: Remove an excess clone on enable_exceptions
2021-11-22 00:02:58 +09:00
Blaž Hrastnik
c39d9f44a0
dap: Simplify debug_parameter_prompt
2021-11-07 21:58:06 +09:00
Blaž Hrastnik
3042ff3e5a
dap: Clean up dap_start_impl, no need to clone arg keys
2021-11-07 21:47:44 +09:00
Blaž Hrastnik
9963a5614d
dap: Minor simplifications
2021-11-07 21:37:00 +09:00
Blaž Hrastnik
65868081fc
dap: Simplify launch & start
...
There's no need to re-detect language config, just use the one available
on the document.
2021-11-07 21:26:03 +09:00
Blaž Hrastnik
4f2a01cc09
dap: Error implements Display so we can format with {}
2021-11-07 21:20:58 +09:00
Blaž Hrastnik
2bd8a9b39d
dap: Consistently rename type as ty
2021-11-07 21:18:53 +09:00
Blaž Hrastnik
9dd17c46a2
dap: Avoid cloning old_breakpoints if we are immediately replacing them
2021-11-07 18:58:47 +09:00
Blaž Hrastnik
757babb1b4
dap: Avoid cloning *entire* stack frames when picking a thread
2021-11-07 18:56:09 +09:00
Blaž Hrastnik
5803de2067
dap: Simplify more calls
2021-11-07 18:51:29 +09:00
Blaž Hrastnik
9baddc825d
dap: Get rid of excessive cloning
2021-11-07 18:38:04 +09:00
Blaž Hrastnik
fd9b826f2c
dap: Inline empty completer
2021-11-07 18:15:17 +09:00
Blaž Hrastnik
5938ab1bf1
dap: Fully extract template parameter prompts
2021-11-07 18:13:37 +09:00
Blaž Hrastnik
3b8d5102ac
Make picker take the whole context, not just editor
2021-11-07 18:03:04 +09:00
Blaž Hrastnik
64bb1f7563
dap: Extract out variable rendering
...
Will improve on the UI later
2021-11-07 17:55:01 +09:00
Blaž Hrastnik
2e1aa5f15b
Fix compilation
2021-11-07 00:32:28 +09:00
Blaž Hrastnik
14a3502cf1
dap: Move template selection into a picker
...
It's time to move all these components out of ui/editor.rs
2021-11-07 00:28:57 +09:00
Dmitry Sharshakov
6aa9838ea6
dap: support arrays as arguments
2021-10-24 17:24:18 +03:00
Blaž Hrastnik
bda05ec4bf
Use a newtype for ThreadId
2021-10-17 14:06:52 +09:00
Dmitry Sharshakov
814dcfa8d2
fix lints
2021-09-26 21:54:36 +03:00
Dmitry Sharshakov
d943a51e3e
editor: add Node.js debugger
2021-09-26 21:36:06 +03:00
Dmitry Sharshakov
0e51e5fbaf
editor: support setExceptionBreakpoints
2021-09-26 10:24:58 +03:00
Dmitry Sharshakov
507a1f8dd6
Get breakpoint reports from debugger
2021-09-06 08:47:54 +03:00
Dmitry Sharshakov
c9cd06e904
Fetch stack traces for all threads when debugger sets all_thread_stopped flag
2021-09-05 16:09:38 +03:00
Dmitry Sharshakov
bdd636d8ee
Clean up import
2021-09-05 15:21:39 +03:00
Dmitry Sharshakov
9b8c5bdade
Remove redundant fetching of stack traces
2021-09-05 15:19:52 +03:00
Dmitry Sharshakov
b6c58ea23e
Support thread previews
2021-09-05 13:39:27 +03:00
Dmitry Sharshakov
8a609047c3
Mouse command for editing logpoint
2021-09-05 08:50:03 +03:00
Dmitry Sharshakov
3b0ec750ff
Support editing breakpoint condition with right click
2021-09-05 08:14:17 +03:00
Dmitry Sharshakov
1befbd076c
Add command for editing breakpoint condition
2021-09-04 22:57:58 +03:00
Dmitry Sharshakov
430c80ff2a
Fix crash when trying to select (view) threads when debuggee is running
2021-09-04 10:28:11 +03:00
Dmitry Sharshakov
c6186ce600
jump to selected stack frame
2021-09-04 10:24:00 +03:00
Dmitry Sharshakov
9a1916ebfd
show thread states in thread picker
2021-09-04 10:14:04 +03:00
Dmitry Sharshakov
00cccdc62a
Don't show thread picker for single-threaded targets
2021-09-04 09:19:19 +03:00
Dmitry Sharshakov
9939dbf119
Fix clippy warnings
2021-09-04 09:08:52 +03:00
Dmitry Sharshakov
cf7237d0b9
compat: make thread IDs signed
...
Delve needs it
2021-09-03 23:11:06 +03:00
Blaž Hrastnik
c63ad60c31
dap: Allow switching between stack frames
2021-09-03 17:25:11 +09:00
Blaž Hrastnik
b997d2cdeb
dap: Allow setting breakpoints before starting the adapter
2021-09-03 13:26:30 +09:00
Blaž Hrastnik
289303a30d
dap: small TODO
2021-09-03 11:48:55 +09:00
Blaž Hrastnik
42f9718f55
dap: Extract thread_picker, make pause explicitly select a thread
2021-09-03 11:43:11 +09:00
Blaž Hrastnik
27c1b3f98b
dap: Extract a thread_states map
2021-09-03 11:30:25 +09:00
Blaž Hrastnik
5b920c53f0
Refactor resume_application state handling
2021-09-03 11:11:22 +09:00
Blaž Hrastnik
2c7b75475f
dap: refactor frame handling
2021-08-30 11:07:59 +09:00
Blaž Hrastnik
986828e75c
dap: Remap keys, match current thread behavior from dap-mode, switch-thread
2021-08-29 23:32:46 +09:00
Blaž Hrastnik
d6ccc150c7
Extract dap commands into a separate file
2021-08-29 22:43:08 +09:00