0.2.0 #639
mfussenegger
started this conversation in
Show and tell
0.2.0
#639
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Improved the handling of disconnects. Previously if a user invoked terminate or disconnect multiple times, it would terminate or disconnect the session with the first invocation and the remaining invocations would eventually timeout. This timeout could cause a new session started later to disconnect as well, leading to an inconsistent state and unusable session.
Stepping operations (
step_out
,step_into
,step_over
..) will now prompt for a thread to resume if there is no stopped thread in focus and if other threads are paused. This can be the case if either, threads were manually paused or if theauto_continue_if_many_stopped
option is set to false. See DemoFunctions used in configurations (
:h dap-configuration
) can now also returncoroutine
/thread
values. This allows to use asynchronous operations to compute values to use in the configuration. There are some constraints:coroutine
.nvim-dap
by resuming the outercoroutine
with the result. If it fails to do so, the launch-session operation will become stuck.An example:
The
pick_process
helper function which can be used in configurations to select a running process is now usingvim.ui.select
instead ofinputlist
.Added a
dap-type
variable to the integrated terminal buffer. Thisdap-type
variable contains the value of the:h dap-configuration
type
.Added support for the
breakpoint
event withreason = 'changed'
to allow debug adapters to change the verified state of breakpoints.Widgets
The
hover
widget will now by default evaluate the selected expression if in visual mode. This makes it possible to define keymaps likevim.keymap.set('v', '<leader>dh', require('dap.ui.widgets').hover)
. Therequire("dap.utils").get_visual_selection_text
function which could be used before to get a similar behavior is now deprecated.Added a new
preview
widget that can be used to show the values of variables in the preview window. You can create a mapping likevim.keymap.set({'n', 'v'}, '<leader>dp', require('dap.ui.widgets').preview
to use it.The
presentationHint.lazy
flag is now recognized in widgets rendering variables. This has the effect that lazy variables no longer take an extra line when loaded but instead the existing line is updated in-place.REPL
dap>
prompt between the first line of the result and subsequent lines.This discussion was created from the release 0.2.0.
Beta Was this translation helpful? Give feedback.
All reactions