fix(dap.hover): don't show null pointers as expandable

This commit is contained in:
2025-09-28 13:36:02 +02:00
parent 0916fa1cb8
commit 154de39931
3 changed files with 29 additions and 24 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ function Window:toggle_node()
coroutine.wrap(function()
local ok, err = xpcall(function()
local info = self:get_current_node_info()
if not info:is_valid() or not info.node:is_container() then
if not info:is_valid() or not info.node:is_expandable() then
return
end
@@ -308,7 +308,7 @@ function Window:expand_all_at_cursor()
coroutine.wrap(function()
local ok, err = xpcall(function()
local info = self:get_current_node_info()
if not info:is_valid() or not info.node:is_container() then
if not info:is_valid() or not info.node:is_expandable() then
return
end