Debug adapter definition and debug configuration
Install any adapter and use any valid nvim-dap configuration.
Debug adapter version
No response
Steps to Reproduce
- Create the following mapping to toggle a widget (any widget is fine, not only scopes)
local scopes = require("dap.ui.widgets").scopes
local sidebar_scopes = require("dap.ui.widgets").sidebar(scopes)
vim.keymap.set("n", "<F5>", function()
sidebar_scopes.toggle()
end)
- Start a debugging session (with any adapter)
- Press
<F5> three times (open it, close it and open it again)
Expected Result
The widget content should be shown only one time.
Actual Result
The widget content is shown two times (and if we keep toggling the widgets, each time it gets opened it's content is appended one more time).