autocomplete on method enum arguments should directly suggest enum values #7868
Labels
enhancement
New feature or surprising current feature
IDE
Relating to Sorbet's LSP server or VS Code extension
Milestone
Input
→ View on sorbet.run
Observed output
Sorbet will only complete
Outer
, and then you have to laboriously complete all. the. nested. namespaces.Expected behavior
Sorbet ought to be smart enough to know that we're completing a method parameter that is an enum, and therefore can only take enum values, and therefore should offer a better list of completions.
Bonus points if it modifies the completions to insert the shortest possible path for the enum value.
The text was updated successfully, but these errors were encountered: