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

feat(dap-ui): Make overlay's priority customizable #770

Merged
merged 1 commit into from
Jan 4, 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
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
Loading