You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vscode has a feature where it will show the types of a variable on hover which can be useful if you are inferring types (or using a dynamic language which allows for inferring type).
This feature is supported by other jedi backends. See coc-jedi. It might be nice to support this in emacs-jedi. I'm not sure how you would implement the hover functions - and I tend to neither use the mouse nor like tooltips showing up unless I asked for them.
I hacked up the following function to show the types of attributes and variables. I don't know if something like this wants to be added to jedi.
(defunmy-jedi-show-type ()
"Show the documentation of the object at point."
(interactive)
(deferred:nextc (jedi:call-deferred 'get_definition)
(lambda (reply)
(popup-tip (plist-get (car (my-jedi:call-sync 'get_definition)) :full_name)))))
The text was updated successfully, but these errors were encountered:
Vscode has a feature where it will show the types of a variable on hover which can be useful if you are inferring types (or using a dynamic language which allows for inferring type).
This feature is supported by other jedi backends. See coc-jedi. It might be nice to support this in emacs-jedi. I'm not sure how you would implement the hover functions - and I tend to neither use the mouse nor like tooltips showing up unless I asked for them.
I hacked up the following function to show the types of attributes and variables. I don't know if something like this wants to be added to jedi.
The text was updated successfully, but these errors were encountered: