Completion for symbols used inside a block pass #7839
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
Expected behavior
At the position indicated by the
^ completion
assertion, Sorbet should be able to produce a list of completion items that starts witheven?
Note that really supporting this well might involve making Sorbet recover better from programs like these:
Right now Sorbet's parse result for this program doesn't keep around anything that we might be able to use to recover the fact that there's a block pass (
&
) here.We might be able to make Sorbet parse this like
But that might be a pretty big yak shave, so we don't need to block the completion feature on it.
The text was updated successfully, but these errors were encountered: