Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lua/dap/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -958,10 +958,8 @@ do
function Session:set_breakpoints(bps, on_done)
local num_requests = vim.tbl_count(bps)
if num_requests == 0 then
if on_done then
on_done()
end
return
local bufnr = vim.api.nvim_get_current_buf()
bps = { [bufnr] = {} }
end
for bufnr, buf_bps in pairs(bps) do
notify_if_missing_capability(buf_bps, self.capabilities)
Expand Down