Skip to content

Commit

Permalink
feat(dap-ui): Make overlay's priority customizable (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored Jan 4, 2024
1 parent 755845a commit 038521a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dap-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ number - expand N levels."
(number :tag "Expand level"))
:group 'dap-ui)

(defcustom dap-ui-overlay-priority 100
"Overlay's base prioirty."
:type 'integer
:group 'dap-ui)

(defcustom dap-ui-controls-screen-position #'posframe-poshandler-frame-top-center
"On-screen position of controls when they are visible."
:type '(choice (const :tag "Top center" posframe-poshandler-frame-top-center)
Expand Down Expand Up @@ -254,7 +259,7 @@ BREAKPOINT-DAP - nil or the data comming from DAP."
:fringe (if (and breakpoint-dap (gethash "verified" breakpoint-dap))
'dap-ui-breakpoint-verified-fringe
'breakpoint-disabled)
:priority 1))
:priority (+ dap-ui-overlay-priority 1)))

(defun dap-ui--refresh-breakpoints ()
"Refresh breakpoints in FILE-NAME.
Expand Down Expand Up @@ -291,7 +296,7 @@ DEBUG-SESSION the new breakpoints for FILE-NAME."
:char ">"
:bitmap 'right-triangle
:fringe 'dap-ui-compile-errline
:priority 2))))
:priority (+ dap-ui-overlay-priority 2)))))

(defun dap-ui--stack-frame-changed (debug-session)
"Handler for `dap-stack-frame-changed-hook'.
Expand Down

0 comments on commit 038521a

Please sign in to comment.