scalameta / coc-metals

Deprecated in favor of scalameta/nvim-metals
http://scalameta.org/metals/
Apache License 2.0
167 stars 24 forks source link

Add support for "type" of selection range. #432

Open ckipp01 opened 3 years ago

ckipp01 commented 3 years ago

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 in nvim-metals: https://github.com/scalameta/nvim-metals/pull/232/files

This was added in: https://github.com/scalameta/metals/pull/3178