Skip to content

Commit

Permalink
fix(dapui): opening float element requires a debug session (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickliujh authored Oct 2, 2024
1 parent 534639a commit ffa8983
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/dapui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ end
---@param args? dapui.FloatElementArgs
function dapui.float_element(elem_name, args)
nio.run(function()
if not dap.session() then
util.notify("No active debug session", vim.log.levels.WARN)
return
end
if open_float then
return open_float:jump_to()
end
Expand Down

0 comments on commit ffa8983

Please sign in to comment.