Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customization option to control expand depth for dap-ui-sessions #785

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -809,7 +819,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
Loading