Skip to content

Commit 84b7e3d

Browse files
Add customization option to control expand depth for dap-ui-sessions (#785)
Co-authored-by: Bastian Beranek <[email protected]>
1 parent 06594a5 commit 84b7e3d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

dap-ui.el

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ number - expand N levels."
5757
(number :tag "Expand level"))
5858
:group 'dap-ui)
5959

60+
(defcustom dap-ui-sessions-expand-depth nil
61+
"Sessions expand strategy.
62+
When nil - do not expand.
63+
t - expand recursively
64+
number - expand N levels."
65+
:type '(choice (const :tag "Do not expand" nil)
66+
(const :tag "Expand recursively" t)
67+
(number :tag "Expand level"))
68+
:group 'dap-ui)
69+
6070
(defcustom dap-ui-overlay-priority 100
6171
"Overlay's base prioirty."
6272
:type 'integer
@@ -810,7 +820,7 @@ DEBUG-SESSION is the debug session triggering the event."
810820
(dap-ui--show-buffer
811821
(lsp-treemacs-render
812822
(dap-ui--sessions-tree)
813-
" Debug Sessions " nil
823+
" Debug Sessions " dap-ui-sessions-expand-depth
814824
dap-ui--sessions-buffer
815825
'(["Delete All Sessions" dap-delete-all-sessions])))
816826
(dap-ui-sessions-mode)

0 commit comments

Comments
 (0)