Skip to content

Assigning keybinding to workspace level task does not work #97159

@ghost

Description

  • VSCode Version: 1.44.2
  • OS Version: Debian 10

Steps to Reproduce:

  1. Add a task to the workspace settings such as:
    "tasks": [
    {
    "label": "foo",
    "type": "shell",
    "command": "echo foo",
    }
    ]

  2. Try adding a keybinding for that task:
    {
    "key": "alt+shift+a",
    "command": "workbench.action.tasks.runTask",
    "args": "foo"
    }

  3. Note that the keybinding does not work.

If you move the task to tasks.json in a folder, it works.

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtasksTask system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions