-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Allow "Declare property" quick fix for enums #25129
Copy link
Copy link
Closed
Labels
Domain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Metadata
Metadata
Assignees
Labels
Domain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
From @gbbarroso on June 21, 2018 1:29
The same way there's a "declare property" suggestion for classes when you use quick fix, there should be one for enums as well. Often you just want to create a new constant for an existing enum and you don't even care about the order / value, having this quick fix would save a trip back to the file containing the enum declaration.
To be clear, that's what I'm talking about:
Copied from original issue: microsoft/vscode#52528