Skip to content

Commit

Permalink
chore(tasks): fix vscode tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumar Harsh committed Nov 14, 2017
1 parent b6a08c9 commit ec7a2d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
13 changes: 6 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"name": "Launch Extension",
"preLaunchTask": "yarn",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"args": ["--extensionDevelopmentPath=${workspaceFolder}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/**/*.js"
],
"preLaunchTask": "npm"
"${workspaceFolder}/out/**/*.js"
]
}
]
}
35 changes: 10 additions & 25 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
// 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",
// we run the custom script "watch" as defined in package.json
"args": ["run", "dev"],

// the command is a shell script
"isShellCommand": true,

// show the output window only if unrecognized errors occur.
"showOutput": "always",

// The tsc compiler is started in watching mode
"version": "2.0.0",
"command": "yarn",
"args": ["dev"],
"type": "shell",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"isBackground": true,

"echoCommand": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
}

0 comments on commit ec7a2d2

Please sign in to comment.