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
In here, I get the same completions at @@ as I would at $$.
Describe the solution you'd like
At @@, I would like to see something like a call to MyClass(...) as one of the first options, as well as any variables in scope that happen to match that type.
This would be incredibly useful in presence of sealed traits/enums (especially sealed traits whose members aren't contained in the companion object), singleton types and unions (including unions of singletons).
Describe alternatives you've considered
IntelliJ, crying myself to sleep, a combination of the two, manually writing the code
Additional context
Type-aware completions are a well-known feature of other editors like IntelliJ IDEA, as well as something supported in other languages like Typescript in VS Code.
IntelliJ is definitely much smarter about this, and I don't think we need to go that far (it suggests applying functions to values in scope, which definitely makes the problem more complex), but even something basic like providing singletons / constructors would be immensely helpful.
Search terms
completions, type-aware, contextual, typed holes
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When I ask for completions, they don't seem to take into account the expected type at the cursor position. For example:
In here, I get the same completions at
@@
as I would at$$
.Describe the solution you'd like
At
@@
, I would like to see something like a call toMyClass(...)
as one of the first options, as well as any variables in scope that happen to match that type.This would be incredibly useful in presence of sealed traits/enums (especially sealed traits whose members aren't contained in the companion object), singleton types and unions (including unions of singletons).
Describe alternatives you've considered
IntelliJ, crying myself to sleep, a combination of the two, manually writing the code
Additional context
Type-aware completions are a well-known feature of other editors like IntelliJ IDEA, as well as something supported in other languages like Typescript in VS Code.
IntelliJ is definitely much smarter about this, and I don't think we need to go that far (it suggests applying functions to values in scope, which definitely makes the problem more complex), but even something basic like providing singletons / constructors would be immensely helpful.
Search terms
completions, type-aware, contextual, typed holes
The text was updated successfully, but these errors were encountered: