1+ // Available variables which can be used inside of strings.
2+ // ${workspaceRoot}: the root folder of the team
3+ // ${file}: the current opened file
4+ // ${relativeFile}: the current opened file relative to workspaceRoot
5+ // ${fileBasename}: the current opened file's basename
6+ // ${fileDirname}: the current opened file's dirname
7+ // ${fileExtname}: the current opened file's extension
8+ // ${cwd}: the current working directory of the spawned process
9+ {
10+ // See https://go.microsoft.com/fwlink/?LinkId=733558
11+ // for the documentation about the tasks.json format
12+ "version" : " 2.0.0" ,
13+ // Start PowerShell
14+ "windows" : {
15+ "command" : " ${env:windir}\\ sysnative\\ windowspowershell\\ v1.0\\ PowerShell.exe" ,
16+ "args" : [
17+ " -NoProfile" ,
18+ " -ExecutionPolicy" ,
19+ " Bypass"
20+ ]
21+ },
22+ "linux" : {
23+ "command" : " /usr/bin/powershell" ,
24+ "args" : [
25+ " -NoProfile"
26+ ]
27+ },
28+ "osx" : {
29+ "command" : " /usr/local/bin/powershell" ,
30+ "args" : [
31+ " -NoProfile"
32+ ]
33+ },
34+ // Show the output window always
35+ "showOutput" : " always" ,
36+ // Associate with test task runner
37+ "tasks" : [{
38+ "taskName" : " Build Help" ,
39+ "suppressTaskName" : true ,
40+ "args" : [
41+ " Write-Host 'Invoking platyPS'; New-ExternalHelp -Path .\\ docs\\ en-US -OutputPath .\\ ConfluencePS\\ en-US -Force;" ,
42+ " Invoke-Command { Write-Host 'Completed Build task in task runner.' }"
43+ ]
44+ },
45+ {
46+ "taskName" : " Test" ,
47+ "suppressTaskName" : true ,
48+ "isTestCommand" : true ,
49+ "args" : [
50+ " Write-Host 'Invoking Pester'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};" ,
51+ " Invoke-Command { Write-Host 'Completed Test task in task runner.' }"
52+ ],
53+ "problemMatcher" : " $pester"
54+ }
55+ ]
56+ }
0 commit comments