Skip to content

Run last task runs task twice #132916

Closed
Closed

Description

Does this issue occur when all extensions are disabled?: Yes

Version: 1.60.0 (user setup)
Commit: e7d7e9a
Date: 2021-09-01T10:41:52.311Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043

Steps to Reproduce:

  1. Have the following tasks.json contents:
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "test1",
            "type": "shell",
            "command": "echo ${input:input1}${input:input2}",
            "runOptions": {
                "reevaluateOnRerun": false
            },
            "dependsOn": ["test2"]
        },
        {
            "label": "test2",
            "type": "shell",
            "command": "echo ${input:input1}"
        }
    ],
    "inputs": [
        {
            "id": "input1",
            "description": "input1",
            "type": "pickString",
            "options": [
                "Option1",
                "Option2"
            ]
        },
        {
            "id": "input2",
            "description": "input2",
            "type": "pickString",
            "options": [
                "Option1",
                "Option2"
            ]
        }
    ]
}
  1. Run the task "test1" and choose "Option1" for input1 and "Option2" for input2
  2. This produces the expected output (i.e. both test2 and test1 outputs)
    image
  3. Now run the Rerun Last Task command.
    Expected Output: Image shown from step 3 as we are simply rerunning test1 and shouldn't need to reevaluate the two inputs.
    Actual Output:
    image

It seems as though test1 gets run twice and test2 doesn't get run at all. The inputs are kept from the previous run, and the user isn't prompted again like expected.

Let me know if there is any information missing or any questions.

Activity

  1. added
    bug
    tasks
    on Sep 20, 2021
  2. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Sep 24, 2021
  3. locked and limited conversation to collaborators on Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedtasksverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions