-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Allow inspecting a class that is used as a ^TypeTag #3679
Comments
Interesting What's the current behavior if you don't manually remove What's |
C-c C-d C-d is |
I'd say that this would be a harmless/DWIM 'breaking' change to do - I'd fail to imagine people intentionally hovering over T in Most likely it's a byproduct of whatever the original impl was |
I also think so.Most of the code type hints local variables anyway which can't be inspected. |
I've fixed this for myself using this hack: (defun cider-inspect-last-sexp ()
(interactive)
(if-let (type-tag (cider-symbol-at-point))
(cider-inspect-expr type-tag (cider-current-ns))
(cider-inspect-expr (cider-last-sexp) (cider-current-ns)))) I check if But I'm not so sure if I'm comfortable pushing this to other people, and I don't know all implications yet. |
Quite often I want to inspect a class that is written with
^
in the source file. To inspect it with the regular inspect-last-expr, I have to remove the^
first. I noticed thatC-c C-d C-d
handles type tags fine. Can we have something like that for the inspector too?This can be handled on the orchard.inspect side but I don't think it's the best place to do that.
The text was updated successfully, but these errors were encountered: