Explicit imports lens (as seen on Twitter)#310
Conversation
I swear that it works for me...
Doesn't seem worth it
|
Could this be exposed via a |
That would be a completely different feature, a refactoring to rewrite your imports. This plugin is firmly a code lens. Maybe we need to support a way to toggle plugins on/off ? |
|
If you click on the code lens, does it replace your import? Seems like that would be an expected feature, and thus starts to make the two features increasingly similar. |
Maybe |
|
I would much prefer a button I can click over code lenses. Rust Analyzer uses code lenses everywhere which gets annoying quick, but they offer a way to disable them while still being able to do the same actions by just hovering over the item which displays actions you can take on it. |
Yes, it does |
This is a personal preference, I'd rather have a code lens. This is solved with a toggle that you can turn on/off, but currently HLS doesn't provide anything in that regard. |
|
Yeah, a toggle would be the best option. |
|
It might also be nice to disable this for qualified imports. |
Agreed. Please send a PR if you have the chance! |
|
see #354 |
This adds a new code lens for displaying explicit import lists on import declarations. There is hopefully an animated gif that illustrates it.