diff --git a/.vscode/launch.json b/.vscode/launch.json index cd6b87b..b91331e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/src/**/*.js" ], - "preLaunchTask": "npm" + "preLaunchTask": "npm: watch" }, { "name": "Launch Tests", @@ -22,7 +22,7 @@ "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/test/**/*.js" ], - "preLaunchTask": "npm" + "preLaunchTask": "npm: watch" } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 99d84d1..16fcdd1 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -9,27 +9,19 @@ // A task runner that calls a custom npm script that compiles the extension. { "version": "2.0.0", - - // we want to run npm - "command": "npm", - - // the command is a shell script - "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, - - // use the standard tsc in watch mode problem matcher to find compile problems in the output. - "problemMatcher": "$tsc-watch" + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } + } + ] } \ No newline at end of file diff --git a/package.json b/package.json index 23c6166..2005354 100644 --- a/package.json +++ b/package.json @@ -407,7 +407,7 @@ }, "scripts": { "vscode:prepublish": "tsc -p ./", - "compile": "tsc -watch -p ./", + "watch": "tsc -watch -p ./", "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" },