When suggesting Patterns to Autocomplete, use Expr to influence generation #4464
StachuDotNet
started this conversation in
Suggestions
Replies: 1 comment
-
|
I have been thinking to have a command that generates all possible cases for a particular type. Another way to do that would be like copilot: each line individually generated and accepted. In this case, we could just generate each possible sumtype from the type of the expression. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I'm writing the code:
(with my cursor at the
~),a limited standard set of Autocomplete Patterns are suggested.
true,false,OK ___, etc.Given that Dark has context of the
Ok "testing"expression that we're matching against, it could be additionally useful to include `Ok "testing" as an option - the PString can be derived by the expr.This is sort of contrived, but I suspect there are more cases where this sort of thing could be handy? Maybe not :)
Beta Was this translation helpful? Give feedback.
All reactions