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

Test: new task API and contributions #23280

Closed
2 tasks done
dbaeumer opened this issue Mar 27, 2017 · 0 comments
Closed
2 tasks done

Test: new task API and contributions #23280

dbaeumer opened this issue Mar 27, 2017 · 0 comments

Comments

@dbaeumer
Copy link
Member

dbaeumer commented Mar 27, 2017

Tests: #22069 & #22066

Complexity: 4

Write a new extension that contributes problem pattern, problem patterns and a task provider. An example on how to contribute a problem pattern and a matcher can be found here: https://github.com/Microsoft/vscode/blob/master/extensions/typescript/package.json#L386

An example on how to write a task provider can be found here: https://github.com/Microsoft/vscode/blob/master/extensions/gulp/src/main.ts

Please note that we didn't introduce special activation events for tasks. We are currently relying on command activation events. So to participate in Run Task, Run Build Task and Run Test Task you need to list the following activation events:

  "activationEvents": [
    "onCommand:workbench.action.tasks.runTask",
    "onCommand:workbench.action.tasks.build",
    "onCommand:workbench.action.tasks.test"
  ]

See also: https://github.com/Microsoft/vscode/blob/master/extensions/gulp/package.json#L25

In the workspace you test on you need to create a tasks.json and point it to version: "2.0.0". The reason is that task contribution is only allowed with the new terminal runner.

{
   "version": "2.0.0"
}
@dbaeumer dbaeumer added this to the March 2017 milestone Mar 27, 2017
@jrieken jrieken removed their assignment Mar 29, 2017
@egamma egamma removed their assignment Mar 29, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants