Function: dape-inlay-hints-update
dape-inlay-hints-update is a natively compiled function defined in
dape.el.
Signature
(dape-inlay-hints-update)
Documentation
Update inlay hints with current variable values.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape-inlay-hints-update ()
"Update inlay hints with current variable values."
(when-let* (((or (eq dape-inlay-hints t)
(and (numberp dape-inlay-hints)
(< 0 dape-inlay-hints))))
(connection (dape--live-connection 'stopped t))
(current-frame (dape--current-stack-frame connection))
(scopes (plist-get current-frame :scopes)))
;; Prepare a new overlay for current selected stack's position
(dape--inlay-hint-create-overlay)
;; Fetch all scopes
(dape--with-debounce dape--inlay-hint-debounce-timer 0.05
(let ((responses 0))
(dolist (scope scopes)
(dape--with-request (dape--variables connection scope)
(when (length= scopes (cl-incf responses))
;; Update each overlay with the new variables
(dape--inlay-hint-update-overlay-contents scopes))))))))