You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement request related to a problem? Please describe.
At the moment, the explicit import code lenses are quite noisy. Often they take up one line for each line of the import block, doubling its length in the editor.
e.g.
<lens> import Foo (Bar, Baz)
import Foo
Describe the solution you'd like
Use inlay hints, like so:
import Foo <hint begins>(Bar, Baz)<hint ends>
Additional context
We can only do this if the client supports inlay hints, so we need to decide based on the client capabilities whether to offer the inlay hints or the lenses as a fallback. I think we probably don't need to make it configurable, since I think the inlay hints will just be superior.
The text was updated successfully, but these errors were encountered:
Do you really want to rely on client detection and fallback on codelens if the client does not support inlay hint? That's additional complexity for a feature which is not mandatory.
Because if you do that, you'll soon want to add codelens as fallback for #4211, #4212, #4213, #4214, ...
The thing is, not all clients will support inlay hints. And not all clients even support code lenses! So I do think that the best UX would be something like, for all features that provide code lenses/inlay hints:
Have the ability to present either as an inlay hint or a code lens, if both make sense. Based on client capabilities by default.
Is your enhancement request related to a problem? Please describe.
At the moment, the explicit import code lenses are quite noisy. Often they take up one line for each line of the import block, doubling its length in the editor.
e.g.
Describe the solution you'd like
Use inlay hints, like so:
Additional context
We can only do this if the client supports inlay hints, so we need to decide based on the client capabilities whether to offer the inlay hints or the lenses as a fallback. I think we probably don't need to make it configurable, since I think the inlay hints will just be superior.
The text was updated successfully, but these errors were encountered: