File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 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."
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..."
You can’t perform that action at this time.
0 commit comments