emacs-lsp / lsp-pyright

lsp-mode :heart: pyright
https://emacs-lsp.github.io/lsp-pyright
GNU General Public License v3.0
291 stars 25 forks source link

Is it possible to expose reveal_type on selection? #74

Open indigoviolet opened 2 years ago

indigoviolet commented 2 years ago

I don't think the LSP spec supports SignatureHelp on a range; so this is probably out of scope. However, I'm curious if you have any ideas in this context:

It would be cool to expose reveal_type() without having to type that out explicitly, while editing a Python file. Specifically, I would love to select an expression, and get the result of reveal_type on that expression. Do you know of a way to do this?