Metals now has support for the user to visual select a piece of code and then get the type of everything selected.
Potential ways to implement?
This is piggy-backing on the current way hover requests are done. The only difference is that a range is sent in instead. You can see an example of how this is done here in nvim-metals: https://github.com/scalameta/nvim-metals/pull/232/files
Describe the feature
Metals now has support for the user to visual select a piece of code and then get the type of everything selected.
Potential ways to implement?
This is piggy-backing on the current way
hover
requests are done. The only difference is that a range is sent in instead. You can see an example of how this is done here innvim-metals
: https://github.com/scalameta/nvim-metals/pull/232/filesThis was added in: https://github.com/scalameta/metals/pull/3178