Skip to content

Cannot Create keybinding to restart a specific Task #35910

@mrawdon

Description

@mrawdon
  • VSCode Version: 1.17.0-insider
  • OS Version: Windows 10

Steps to Reproduce:

  1. Add these keybindings
[
	{"key":"f6","command":"workbench.action.tasks.runTask", "args":"run"},
	{"key":"ctrl+f6","command":"workbench.action.tasks.restartTask", "args":"run"}
]
  1. Type f6
  2. My run task begins
  3. Type Ctrl + f6
  4. The task selection screen pops up
    image

Reproduces without extensions: Yes

It seems like he arg behavior in runTask code https://github.com/Microsoft/vscode/blob/c8eb003402ce5d6e0529a4da459b863ac5610af9/src/vs/workbench/parts/tasks/electron-browser/task.contribution.ts#L1975

Needs to be replicated in runRestartTaskCommand
https://github.com/Microsoft/vscode/blob/c8eb003402ce5d6e0529a4da459b863ac5610af9/src/vs/workbench/parts/tasks/electron-browser/task.contribution.ts#L2163

The same issue also exists with runTerminateCommand

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiestasksTask system issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions