Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProvide a quick fix to add missing enum member #40056
Open
Milestone
Comments
One could probably fold in the logic into the existing "add missing member" quick fix, which would be preferable. |
"What happens if you have something that's both a class and enum?" I don't really know. Don't offer the quick fix in that case. |
Err, @DanielRosenwasser this already exists, I think. Copy & pasting that sample into the playground does give a quick fix. Playground Link: Provided |
TypeScript/src/services/codefixes/fixAddMissingMember.ts Lines 19 to 23 in 2426eb4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should have a quick fix for the error message
to add
RightBrace
as a missing enum member. The resulting code should look like