Update tsk provide sample to task 2.0.0

This commit is contained in:
Dirk Baeumer
2018-05-31 15:51:42 +02:00
parent 68290cdb44
commit 048b497a62
5 changed files with 2087 additions and 70 deletions

View File

@ -11,7 +11,7 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/src/**/*.js"],
"preLaunchTask": "npm: run compile"
"preLaunchTask": "npm: watch"
},
{
"name": "Launch Tests",
@ -22,17 +22,7 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
"preLaunchTask": "npm: run compile"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Extension Host",
"protocol": "legacy",
"port": 5870,
"sourceMaps": true,
"restart": true,
"outDir": "${workspaceRoot}/out/src"
"preLaunchTask": "npm: watch"
}
]
}

View File

@ -0,0 +1,4 @@
{
// Turn off tsc task auto detection since we have the necessary task as npm scripts
"typescript.tsc.autoDetect": "off"
}

View File

@ -1,15 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile",
"isBackground": true,
"problemMatcher": [
"$tsc-watch"
]
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

2015
task-provider-sample/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,45 +1,48 @@
{
"name": "task-provider-samples",
"displayName": "Task Provider Samples",
"description": "Samples for VSCode's view API",
"version": "0.0.1",
"publisher": "ms-vscode",
"engines": {
"vscode": "^1.13.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:workbench.action.tasks.runTask"
],
"main": "./out/src/extension",
"contributes": {
"taskDefinitions": [
{
"type": "rake",
"required": ["task"],
"properties": {
"task": {
"type": "string",
"description": "The Rake task to customize"
},
"file": {
"type": "string",
"description": "The Rake file that provides the task. Can be omitted."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"typescript": "^2.4.1",
"vscode": "^1.1.17",
"@types/node": "*"
}
}
{
"name": "task-provider-samples",
"displayName": "Task Provider Samples",
"description": "Samples for VSCode's view API",
"version": "0.0.1",
"publisher": "ms-vscode",
"engines": {
"vscode": "^1.23.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:workbench.action.tasks.runTask"
],
"main": "./out/src/extension",
"contributes": {
"taskDefinitions": [
{
"type": "rake",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The Rake task to customize"
},
"file": {
"type": "string",
"description": "The Rake file that provides the task. Can be omitted."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"typescript": "^2.4.1",
"vscode": "^1.1.17",
"@types/node": "*"
}
}