Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Support descriptions for enum values in config. - #7916

Merged
benogle merged 1 commit into
atom:masterfrom
oggy:descriptive-enums
Jan 26, 2016
Merged

benogle merged 1 commit into
atom:masterfrom
oggy:descriptive-enums

Conversation

@oggy

@oggy oggy commented Jul 15, 2015

Copy link
Copy Markdown
Contributor

The "enum" property may now specify options as a list of [value,
description] pairs.

This goes with atom/settings-view#589.

@benogle

benogle commented Oct 13, 2015

Copy link
Copy Markdown
Contributor

I like this idea cc @atom/feedback

@thomasjo

Copy link
Copy Markdown
Contributor

Same here! This seems like a valuable addition.

@benogle

benogle commented Oct 13, 2015

Copy link
Copy Markdown
Contributor

Though my vote would be for a an object rather than an array: {value: 'one', description: 'One'}

@oggy

oggy commented Oct 13, 2015

Copy link
Copy Markdown
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.

@oggy

oggy commented Oct 13, 2015

Copy link
Copy Markdown
Contributor Author

@benogle Oh, I think I misread you -- you meant an array of objects. I'm on board with that.

@thomasjo

Copy link
Copy Markdown
Contributor

@oggy But wouldn't it be an array of objects? You can still control the order. Nevermind 😄

@oggy
oggy force-pushed the descriptive-enums branch 2 times, most recently from 0614af9 to 9746bcc Compare October 14, 2015 05:29
The enum property may now specify options as a list of {value:,
description:} objects.
@oggy
oggy force-pushed the descriptive-enums branch from 9746bcc to 790ea8e Compare October 14, 2015 05:54
@thomasjo

Copy link
Copy Markdown
Contributor

LGTM! 🚢

@benogle

benogle commented Oct 15, 2015

Copy link
Copy Markdown
Contributor

cc @maxbrunsfeld

@oggy

oggy commented Dec 12, 2015

Copy link
Copy Markdown
Contributor Author

Is there anything else needed here? I think the requires-changes tag can be removed.

@winstliu

Copy link
Copy Markdown
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.
@benogle
benogle merged commit 8acb742 into atom:master Jan 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants