Skip to content

[inspector] Fix inspecting value from the debugger #3783

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

Merged
merged 1 commit into from
Mar 5, 2025
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
10 changes: 7 additions & 3 deletions cider-inspector.el
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,13 @@ MAX-COLL-SIZE if non nil."
(declare-function cider-set-buffer-ns "cider-mode")

;; Render Inspector from Structured Values
(defun cider-inspector--render-value (response-dict)
"Render value in RESPONSE-DICT."
(let* ((value (nrepl-dict-get response-dict "value"))
(defun cider-inspector--render-value (dict-or-value)
"Render DICT-OR-VALUE.
It can either be a value directly or a inspector response that contains
`value' field."
(let* ((value (if (nrepl-dict-p dict-or-value)
(nrepl-dict-get dict-or-value "value")
dict-or-value))
(ns (cider-current-ns))
(font-size (when-let* ((b (get-buffer cider-inspector-buffer))
(variable 'text-scale-mode-amount)
Expand Down