Skip to content

Friendly pickstring options - #89180

Merged
Alex Ross (alexr00) merged 7 commits into
microsoft:masterfrom
LarssonOliver:friendly-pickstring
Jan 24, 2020
Merged

Alex Ross (alexr00) merged 7 commits into
microsoft:masterfrom
LarssonOliver:friendly-pickstring

Conversation

@LarssonOliver

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

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

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 Alex Ross (alexr00) added this to the January 2020 milestone Jan 24, 2020

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

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
Alex Ross (alexr00) merged commit 7b315c8 into microsoft:master Jan 24, 2020
@LarssonOliver
Oliver Larsson (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