Skip to content

Commit 821a6d0

Browse files
committed
fix: handling if all scopes are expensive
1 parent a1ded91 commit 821a6d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/dap-view/scopes/view.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ M.show = function()
146146
end
147147
end
148148

149+
if views.cleanup_view(vim.tbl_isempty(filtered_scopes), "No eligible scopes returned from adapter") then
150+
return
151+
end
152+
149153
local all_scopes_collapsed = vim.iter(filtered_scopes):all(
150154
---@param s dap.Scope
151155
function(s)

0 commit comments

Comments
 (0)