Skip to content

Commit

Permalink
Add customization option to control expand depth for dap-ui-sessions (#…
Browse files Browse the repository at this point in the history
…785)

Co-authored-by: Bastian Beranek <[email protected]>
  • Loading branch information
bastianbeischer and beranekba authored Apr 6, 2024
1 parent 06594a5 commit 84b7e3d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dap-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ number - expand N levels."
(number :tag "Expand level"))
:group 'dap-ui)

(defcustom dap-ui-sessions-expand-depth nil
"Sessions expand strategy.
When nil - do not expand.
t - expand recursively
number - expand N levels."
:type '(choice (const :tag "Do not expand" nil)
(const :tag "Expand recursively" t)
(number :tag "Expand level"))
:group 'dap-ui)

(defcustom dap-ui-overlay-priority 100
"Overlay's base prioirty."
:type 'integer
Expand Down Expand Up @@ -810,7 +820,7 @@ DEBUG-SESSION is the debug session triggering the event."
(dap-ui--show-buffer
(lsp-treemacs-render
(dap-ui--sessions-tree)
" Debug Sessions " nil
" Debug Sessions " dap-ui-sessions-expand-depth
dap-ui--sessions-buffer
'(["Delete All Sessions" dap-delete-all-sessions])))
(dap-ui-sessions-mode)
Expand Down

0 comments on commit 84b7e3d

Please sign in to comment.