This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Support descriptions for enum values in config. - #7916
Merged
Merged
Conversation
Closed
Contributor
|
I like this idea cc @atom/feedback |
Contributor
|
Same here! This seems like a valuable addition. |
Contributor
|
Though my vote would be for a an object rather than an array: |
Contributor
Author
|
@benogle I think I went for an array rather than an object so you have control over the order. Granted, perhaps supporting an object (and just sorting the descriptions alphabetically in that case) would be good too. |
Contributor
Author
|
@benogle Oh, I think I misread you -- you meant an array of objects. I'm on board with that. |
Contributor
|
@oggy |
oggy
force-pushed
the
descriptive-enums
branch
2 times, most recently
from
October 14, 2015 05:29
0614af9 to
9746bcc
Compare
The enum property may now specify options as a list of {value:,
description:} objects.
oggy
force-pushed
the
descriptive-enums
branch
from
October 14, 2015 05:54
9746bcc to
790ea8e
Compare
Contributor
|
LGTM! 🚢 |
Contributor
Contributor
Author
|
Is there anything else needed here? I think the requires-changes tag can be removed. |
Contributor
|
I've also restarted the build. |
benogle
added a commit
that referenced
this pull request
Jan 26, 2016
Support descriptions for enum values in config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "enum" property may now specify options as a list of [value,
description] pairs.
This goes with atom/settings-view#589.