Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'pickString' evaluation #65

Closed
wants to merge 1 commit into from
Closed

Conversation

sdirix
Copy link
Member

@sdirix sdirix commented Jan 23, 2023

Fixes the 'pickString' evaluation in tasks and launch configurations.

Fixes eclipse-theia#11585

Contributed on behalf of STMicroelectronics

What it does

Similar to 'promptString', 'pickString' can be used to replace variables in task and launch configurations. However 'pickString' values were not correctly handled which prevented them from being evaluated. This is now fixed.

How to test

Run the task from the following task.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "echo select foo or bar",
            "type": "shell",
            "command": "echo ${input:select-foo-or-bar}",
            "problemMatcher": []
        }
    ],
    "inputs": [
        {
            "id": "select-foo-or-bar",
            "type": "pickString",
            "description": "Select foo or bar",
            "default": "foo",
            "options": [
                "foo",
                "bar"
            ],
        }
    ]
}

Review checklist

Reminder for reviewers

Copy link
Member

@AlexandraBuzila AlexandraBuzila left a comment

Choose a reason for hiding this comment

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

Works great and looks good to me!

Similar to 'promptString', 'pickString' can be used to replace variables in task and
launch configurations. However 'pickString' values were not correctly handled which
prevented them from being evaluated. This is now fixed.

Fixes eclipse-theia#11585

Contributed on behalf of STMicroelectronics
@sdirix sdirix force-pushed the evaluate-pickString-variables branch from 4f2b779 to 61f0f4d Compare January 23, 2023 15:48
@sdirix
Copy link
Member Author

sdirix commented Jan 23, 2023

Thanks for the review! Upstream PR is now open: eclipse-theia#12100

@sdirix sdirix closed this Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tasks: inputs variable of type pickString not evaluated
2 participants