Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

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

Open
ckipp01 opened this issue Oct 12, 2021 · 0 comments
Open

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

ckipp01 opened this issue Oct 12, 2021 · 0 comments
Labels
feature New feature or request

Comments

@ckipp01
Copy link
Member

ckipp01 commented Oct 12, 2021

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: scalameta/metals#3178

@ckipp01 ckipp01 added the feature New feature or request label Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant