From 311210a8237da467bd1b0ab8768f307f845c6e33 Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Sat, 9 May 2020 22:37:46 +0800 Subject: [PATCH 1/6] Add launch tests to launch.json --- .vscode/launch.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ef99c22f8..d8747611f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,6 @@ { "version": "0.1.0", "configurations": [ - { "name": "Launch Extension", "type": "extensionHost", @@ -13,6 +12,20 @@ "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/src/**/*.js" ], "preLaunchTask": "npm" + }, + { + "name": "Extension Tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" + ], + "outFiles": [ + "${workspaceFolder}/out/test/**/*.js" + ], + "preLaunchTask": "npm" } ] } From 6c8077352e5b1016e5c23f7aee8e041c500f5dac Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Sat, 9 May 2020 22:44:50 +0800 Subject: [PATCH 2/6] Update launch.json --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d8747611f..309280537 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "args": ["--extensionDevelopmentPath=${workspaceRoot}" ], "stopOnEntry": false, "sourceMaps": true, - "outFiles": [ "${workspaceRoot}/out/src/**/*.js" ], + "outFiles": [ "${workspaceRoot}/out/**/*.js" ], "preLaunchTask": "npm" }, { From f89e7149c49c5f729d2e9ecdab0f89b380486549 Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Sun, 10 May 2020 10:41:20 +0800 Subject: [PATCH 3/6] Update tasks.json and launch.json --- .vscode/launch.json | 4 +-- .vscode/tasks.json | 59 +++++++++++++++++++++++---------------------- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 309280537..09af23d6a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/**/*.js" ], - "preLaunchTask": "npm" + "preLaunchTask": "build" }, { "name": "Extension Tests", @@ -25,7 +25,7 @@ "outFiles": [ "${workspaceFolder}/out/test/**/*.js" ], - "preLaunchTask": "npm" + "preLaunchTask": "pretest" } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1e37eb7bb..b9f595d25 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,30 +1,31 @@ -// Available variables which can be used inside of strings. -// ${workspaceRoot}: the root folder of the team -// ${file}: the current opened file -// ${fileBasename}: the current opened file's basename -// ${fileDirname}: the current opened file's dirname -// ${fileExtname}: the current opened file's extension -// ${cwd}: the current working directory of the spawned process - -// A task runner that calls a custom npm script that compiles the extension. { - "version": "0.1.0", - - // we want to run npm - "command": "npm", - - // the command is a shell script - "isShellCommand": true, - - // show the output window only if unrecognized errors occur. - "showOutput": "silent", - - // 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" -} \ No newline at end of file + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "npm", + "args": [ + "run", + "compile", + "--loglevel", + "silent" + ], + "isBackground": true, + "problemMatcher": "$tsc-watch" + }, + { + "label": "pretest", + "type": "shell", + "command": "npm", + "args": [ + "run", + "pretest" + ], + "isBackground": true, + "problemMatcher": "$tsc-watch" + } + ] +} From 13cc969da145f68e539b0840516a3846a0b689ef Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Sun, 10 May 2020 10:52:22 +0800 Subject: [PATCH 4/6] Update launch.json and tasks.json --- .vscode/launch.json | 64 +++++++++++++++++++++++++-------------------- .vscode/tasks.json | 2 -- 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 09af23d6a..8fcadfeda 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,31 +1,37 @@ -// A launch configuration that compiles the extension and then opens it inside a new window { - "version": "0.1.0", - "configurations": [ - { - "name": "Launch Extension", - "type": "extensionHost", - "request": "launch", - "runtimeExecutable": "${execPath}", - "args": ["--extensionDevelopmentPath=${workspaceRoot}" ], - "stopOnEntry": false, - "sourceMaps": true, - "outFiles": [ "${workspaceRoot}/out/**/*.js" ], - "preLaunchTask": "build" - }, - { - "name": "Extension Tests", - "type": "extensionHost", - "request": "launch", - "runtimeExecutable": "${execPath}", - "args": [ - "--extensionDevelopmentPath=${workspaceFolder}", - "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" - ], - "outFiles": [ - "${workspaceFolder}/out/test/**/*.js" - ], - "preLaunchTask": "pretest" - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Extension", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceRoot}" + ], + "stopOnEntry": false, + "sourceMaps": true, + "outFiles": [ + "${workspaceRoot}/out/**/*.js" + ], + "preLaunchTask": "build" + }, + { + "name": "Extension Tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" + ], + "outFiles": [ + "${workspaceFolder}/out/test/**/*.js" + ], + "preLaunchTask": "pretest" + } + ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b9f595d25..aecbfdba8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -13,7 +13,6 @@ "--loglevel", "silent" ], - "isBackground": true, "problemMatcher": "$tsc-watch" }, { @@ -24,7 +23,6 @@ "run", "pretest" ], - "isBackground": true, "problemMatcher": "$tsc-watch" } ] From cd4c0aed206a2d4134ada12ae960804b25d2f730 Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Sun, 10 May 2020 11:19:24 +0800 Subject: [PATCH 5/6] Update launch.json and tasks.json --- .vscode/launch.json | 6 ++---- .vscode/tasks.json | 50 +++++++++++++++++++++++++++++---------------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8fcadfeda..f78968441 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,12 +12,10 @@ "args": [ "--extensionDevelopmentPath=${workspaceRoot}" ], - "stopOnEntry": false, - "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/**/*.js" ], - "preLaunchTask": "build" + "preLaunchTask": "npm: compile" }, { "name": "Extension Tests", @@ -31,7 +29,7 @@ "outFiles": [ "${workspaceFolder}/out/test/**/*.js" ], - "preLaunchTask": "pretest" + "preLaunchTask": "npm: pretest" } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index aecbfdba8..06944686d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,26 +4,40 @@ "version": "2.0.0", "tasks": [ { - "label": "build", - "type": "shell", - "command": "npm", - "args": [ - "run", - "compile", - "--loglevel", - "silent" - ], - "problemMatcher": "$tsc-watch" + "type": "npm", + "script": "compile", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } }, { - "label": "pretest", - "type": "shell", - "command": "npm", - "args": [ - "run", - "pretest" - ], - "problemMatcher": "$tsc-watch" + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": "build" + }, + { + "type": "npm", + "script": "pretest", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "test", + "isDefault": true + } } ] } From 051ff3084a42c89f15089eeb7d6fef6802a1f1c6 Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Fri, 15 May 2020 18:44:23 +0800 Subject: [PATCH 6/6] Fix outFiles in launch.json --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f78968441..14973cc22 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,7 @@ "--extensionDevelopmentPath=${workspaceRoot}" ], "outFiles": [ - "${workspaceRoot}/out/**/*.js" + "${workspaceRoot}/out/src/**/*.js" ], "preLaunchTask": "npm: compile" },