From 0239b8f848321ecccb31581a10886d4366c65e08 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 9 Apr 2018 06:30:41 -0700 Subject: [PATCH] Update terminal sample launch/tasks --- terminal-sample/.vscode/launch.json | 36 +++++++++++++--------- terminal-sample/.vscode/tasks.json | 46 +++++++++++------------------ terminal-sample/package.json | 22 +++++++++----- 3 files changed, 54 insertions(+), 50 deletions(-) diff --git a/terminal-sample/.vscode/launch.json b/terminal-sample/.vscode/launch.json index e37ef19a..fecbb1ef 100644 --- a/terminal-sample/.vscode/launch.json +++ b/terminal-sample/.vscode/launch.json @@ -1,28 +1,36 @@ // A launch configuration that compiles the extension and then opens it inside a new window +// 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.1.0", + "version": "0.2.0", "configurations": [ { - "name": "Launch Extension", + "name": "Extension", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", - "args": ["--extensionDevelopmentPath=${workspaceRoot}" ], - "stopOnEntry": false, - "sourceMaps": true, - "outFiles": ["${workspaceRoot}/out/src/**/*.js"], - "preLaunchTask": "npm" + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: watch" }, { - "name": "Launch Tests", + "name": "Extension Tests", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", - "args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ], - "stopOnEntry": false, - "sourceMaps": true, - "outFiles": ["${workspaceRoot}/out/test/**/*.js"], - "preLaunchTask": "npm" + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test" + ], + "outFiles": [ + "${workspaceFolder}/out/test/**/*.js" + ], + "preLaunchTask": "npm: watch" } ] -} +} \ No newline at end of file diff --git a/terminal-sample/.vscode/tasks.json b/terminal-sample/.vscode/tasks.json index fb7f662e..604e38f5 100644 --- a/terminal-sample/.vscode/tasks.json +++ b/terminal-sample/.vscode/tasks.json @@ -1,30 +1,20 @@ -// 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. +// See https://go.microsoft.com/fwlink/?LinkId=733558 +// for the documentation about the tasks.json format { - "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 - "isWatching": true, - - // use the standard tsc in watch mode problem matcher to find compile problems in the output. - "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 + } + } + ] } \ No newline at end of file diff --git a/terminal-sample/package.json b/terminal-sample/package.json index d48db46d..939e60d6 100644 --- a/terminal-sample/package.json +++ b/terminal-sample/package.json @@ -5,7 +5,7 @@ "version": "0.0.1", "publisher": "Tyriar", "engines": { - "vscode": "^1.5.0" + "vscode": "^1.6.0" }, "categories": [ "Other" @@ -61,13 +61,19 @@ ] }, "scripts": { - "vscode:prepublish": "tsc -p ./", - "compile": "tsc -watch -p ./", - "postinstall": "node ./node_modules/vscode/bin/install" + "vscode:prepublish": "npm run compile", + "compile": "tsc -p ./", + "lint": "tslint ./src/*.ts", + "watch": "tsc -watch -p ./", + "postinstall": "node ./node_modules/vscode/bin/install", + "test": "npm run compile && node ./node_modules/vscode/bin/test" }, "devDependencies": { - "typescript": "^2.1.4", - "vscode": "^1.0.0", - "@types/node": "*" + "@types/mocha": "^2.2.32", + "@types/node": "^6.0.40", + "mocha": "^2.3.3", + "tslint": "^5.9.1", + "typescript": "^2.0.3", + "vscode": "^1.0.0" } -} \ No newline at end of file +}