Fix the issue that npm preLaunchTask does not exit (#519)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
This commit is contained in:
parent
66e671ff33
commit
4a85531207
|
@ -11,7 +11,7 @@
|
||||||
"stopOnEntry": false,
|
"stopOnEntry": false,
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
|
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
|
||||||
"preLaunchTask": "npm"
|
"preLaunchTask": "npm: watch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Launch Tests",
|
"name": "Launch Tests",
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
"stopOnEntry": false,
|
"stopOnEntry": false,
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
|
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
|
||||||
"preLaunchTask": "npm"
|
"preLaunchTask": "npm: watch"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,27 +9,19 @@
|
||||||
// A task runner that calls a custom npm script that compiles the extension.
|
// A task runner that calls a custom npm script that compiles the extension.
|
||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
// we want to run npm
|
{
|
||||||
"command": "npm",
|
"type": "npm",
|
||||||
|
"script": "watch",
|
||||||
// the command is a shell script
|
"problemMatcher": "$tsc-watch",
|
||||||
"type": "shell",
|
|
||||||
|
|
||||||
// show the output window only if unrecognized errors occur.
|
|
||||||
"presentation": {
|
|
||||||
"echo": true,
|
|
||||||
"reveal": "silent",
|
|
||||||
"focus": false,
|
|
||||||
"panel": "shared"
|
|
||||||
},
|
|
||||||
|
|
||||||
// we run the custom script "compile" as defined in package.json
|
|
||||||
"args": ["run", "compile", "--loglevel", "silent"],
|
|
||||||
|
|
||||||
// The tsc compiler is started in watching mode
|
|
||||||
"isBackground": true,
|
"isBackground": true,
|
||||||
|
"presentation": {
|
||||||
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
|
"reveal": "never"
|
||||||
"problemMatcher": "$tsc-watch"
|
},
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -407,7 +407,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "tsc -p ./",
|
"vscode:prepublish": "tsc -p ./",
|
||||||
"compile": "tsc -watch -p ./",
|
"watch": "tsc -watch -p ./",
|
||||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||||
"test": "node ./scripts/download-vscode-for-system-tests && node ./scripts/install-vsix-dependencies redhat.java && node ./scripts/install-vsix-dependencies vscode-java-debug-0.16.0.vsix && node ./scripts/run-vscode-tests"
|
"test": "node ./scripts/download-vscode-for-system-tests && node ./scripts/install-vsix-dependencies redhat.java && node ./scripts/install-vsix-dependencies vscode-java-debug-0.16.0.vsix && node ./scripts/run-vscode-tests"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue