Skip to content

Friendly pickstring options#89180

Merged
alexr00 merged 7 commits intomicrosoft:masterfrom
LarssonOliver:friendly-pickstring
Jan 24, 2020
Merged

Friendly pickstring options#89180
alexr00 merged 7 commits intomicrosoft:masterfrom
LarssonOliver:friendly-pickstring

Conversation

@LarssonOliver
Copy link
Contributor

This PR fixes #84983

Implemented a way to allow for seperate display names when specifying options for a pickString.

Would be used like this:

{
    "type": "pickString",
    "id": "options",
    "description": "description",
    "options": [
        "option1",
        {
            "name": "Option number 2",
            "value": "option2"
        },
        {
            "value": "option3"
        }
    ],
    "default": "option2"
}

The user can specify an option as either a string, or an object with the name and value of the option.
This would show up in the selection list like this:

pickString_prettifying

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few small changes!

@alexr00 alexr00 added this to the January 2020 milestone Jan 24, 2020
Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@alexr00 alexr00 merged commit 7b315c8 into microsoft:master Jan 24, 2020
@LarssonOliver LarssonOliver deleted the friendly-pickstring branch January 24, 2020 14:36
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

Allow friendly name for task input pickString options

2 participants