From a6e4590f85a1eeea3f17d890ecb4b34417b72d1c Mon Sep 17 00:00:00 2001 From: Timon Wong Date: Thu, 31 May 2018 09:14:21 +0800 Subject: [PATCH] Fix vscode launch & tasks --- .vscode/launch.json | 6 +++--- .vscode/tasks.json | 14 ++++++++++++-- README.md | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2cea993bc..8d1a39831 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,6 @@ // A launch configuration that compiles the extension and then opens it inside a new window { - "version": "0.1.0", + "version": "0.2.0", "configurations": [ { "type": "extensionHost", @@ -15,7 +15,7 @@ ], "stopOnEntry": false, "sourceMaps": true, - "preLaunchTask": "npm" + "preLaunchTask": "build" }, { "type": "extensionHost", @@ -31,7 +31,7 @@ "outFiles": [ "${workspaceRoot}/out/**/*.js" ], - "preLaunchTask": "npm" + "preLaunchTask": "build" } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4b1424b19..b4d80fc82 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,11 +4,12 @@ "version": "2.0.0", "tasks": [ { + "label": "watch", "type": "npm", "script": "watch", "isBackground": true, "presentation": { - "reveal": "never", + "reveal": "never" }, "problemMatcher": [ "$tsc-watch" @@ -16,7 +17,16 @@ "group": { "kind": "build", "isDefault": true - }, + } + }, + { + "label": "build", + "type": "npm", + "script": "compile", + "problemMatcher": [ + "$tsc" + ], + "group": "build" } ] } diff --git a/README.md b/README.md index 709a1eb2f..0ef732cee 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## Requirements -1. Ensure `shellcheck` is [installed](https://github.com/koalaman/shellcheck#installing). +1. Ensure `shellcheck` is [installed](https://github.com/koalaman/shellcheck#installing)(`v0.4.7` is highly recommended). 2. Run [`Install Extension`](https://code.visualstudio.com/docs/editor/extension-gallery#_install-an-extension) command from [Command Palette](https://code.visualstudio.com/Docs/editor/codebasics#_command-palette). 3. Search and choose `shellcheck`.