-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Hi,
Not a bug, but a feature request please. Have been asked to post feature request here.
Version Used:
N/A
Steps to Reproduce:
- Create an enum.
- Create a variable in a method for that enum, assign value.
- Type sw(tab)(tab) and press Enter.
Expected Behavior:
Like C#, enum values to be auto-listed as cases.
let status: StatusETW = etw.EtwStatusId as StatusETW;
switch (status) {
case StatusETW.Cancelled:
break;
case StatusETW.Completed:
break;
case StatusETW.Draft:
break;
case StatusETW.EligibleToWork:
break;
case StatusETW.Expired:
break;
case StatusETW.UnComplete:
break;
case StatusETW.Unlock:
break;
default:
break;
}Actual Behavior:
This happens:
let status: StatusETW = etw.EtwStatusId as StatusETW;
switch (status) {
default:
}Kind Regards.
abdulkareemnalband, Startouf, owiefawefoeiwf, jeiea, lal12 and 6 more
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript