Skip to content

Commit 7cd51e7

Browse files
committed
Introduce dap-ui-locals-expand-depth
Fixes #230
1 parent f0ed63e commit 7cd51e7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

dap-ui.el

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@
3737
(require 'dap-ui-repl)
3838
(require 'posframe)
3939

40-
(defcustom dap-ui-stack-frames-loaded nil
41-
"Stack frames loaded."
42-
:type 'hook
43-
:group 'dap-ui)
44-
4540
(defcustom dap-ui-breakpoints-ui-list-displayed-hook nil
4641
"List of functions to run when breakpoints list is displayed."
4742
:type 'hook
4843
:group 'dap-ui)
4944

45+
(defcustom dap-ui-locals-expand-depth 1
46+
"Dap"
47+
:type '(choice (const :tag "Do not expand" nil)
48+
(const :tag "Expand recursively" t)
49+
(number :tag "Expand level"))
50+
:group 'dap-ui)
51+
5052
(defface dap-ui-compile-errline
5153
'((t (:inherit compilation-error)))
5254
"Face used for marking the line on which an error occurs."
@@ -147,9 +149,6 @@
147149
(,dap-ui--breakpoints-buffer . ((side . left) (slot . 2) (window-width . ,treemacs-width)))
148150
(,dap-ui--debug-window-buffer . ((side . bottom) (slot . 3) (window-width . 0.20)))))
149151

150-
(defvar-local dap-ui--locals-request-id 0
151-
"The locals request id that is currently active.")
152-
153152
(defun dap-ui-session--calculate-face (debug-session)
154153
"Calculate the face of DEBUG-SESSION based on its state."
155154
(cond
@@ -800,7 +799,7 @@ DEBUG-SESSION is the debug session triggering the event."
800799
(dap--cur-session)
801800
variables-reference)))
802801
it)
803-
(lsp-treemacs-render it " Locals " nil dap-ui--locals-buffer)
802+
(lsp-treemacs-render it " Locals " dap-ui-locals-expand-depth dap-ui--locals-buffer)
804803
(or it t))
805804
(lsp-treemacs-render
806805
'((:label "Nothing to display..."

0 commit comments

Comments
 (0)