Offer auto-completions for string literal unions while writing case statements #49945
Closed
5 tasks done
Labels
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Experience Enhancement
Noncontroversial enhancements
Suggestion
An idea for TypeScript
Milestone
Suggestion
Offer in suggestions: 'case (add missing cases)'. Which would turn into:
Extra credit: add two options 'add missing cases' and 'add exhaustive missing cases' which adds a never in the default:
Offer in suggestions:
🔍 Search Terms
switch autocomplete switch suggestions switch fill case string union
✅ Viability Checklist
My suggestion meets these guidelines:
📃 Motivating Example
I got me a long string literal enum, and I've got to cover all those cases.
💻 Use Cases
^
The text was updated successfully, but these errors were encountered: