1010 // See https://go.microsoft.com/fwlink/?LinkId=733558
1111 // for the documentation about the tasks.json format
1212 "version" : " 2.0.0" ,
13-
14- // Start PowerShell
15- "windows" : {
16- "command" : " powershell.exe" ,
17- "args" : [ " -NoProfile" , " -ExecutionPolicy" , " Bypass" ]
18- },
19- "linux" : {
20- "command" : " /usr/bin/powershell" ,
21- "args" : [ " -NoProfile" ]
22- },
23- "osx" : {
24- "command" : " /usr/local/bin/powershell" ,
25- "args" : [ " -NoProfile" ]
26- },
27-
28- // Show the output window always
29- "showOutput" : " always" ,
30-
3113 "tasks" : [
3214 {
33- "taskName" : " Build" ,
34- "suppressTaskName" : true ,
35- "isBuildCommand" : true ,
36- "args" : [
37- " ${workspaceRoot}\\ Build.ps1"
38- ]
15+ "label" : " Build Module" ,
16+ "type" : " shell" ,
17+ "windows" : {
18+ "command" : " powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\ Build.ps1 -BuildModule"
19+ },
20+ "linux" : {
21+ "command" : " /usr/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1"
22+ },
23+ "osx" : {
24+ "command" : " /usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1"
25+ },
26+ "group" : {
27+ "kind" : " build" ,
28+ "isDefault" : true
29+ },
30+ "presentation" : {
31+ "reveal" : " always" ,
32+ "panel" : " new"
33+ }
3934 },
4035 {
41- "taskName" : " Build, Install, and Load Module" ,
42- "suppressTaskName" : true ,
43- "isBuildCommand" : true ,
44- "args" : [
45- " Invoke-Build -Task BuildInstallAndTestModule"
46- ],
47- "problemMatcher" : []
36+ "label" : " Build, Install, and Load Module" ,
37+ "type" : " shell" ,
38+ "windows" : {
39+ "command" : " powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\ Build.ps1 -BuildModule -InstallAndTestModule"
40+ },
41+ "linux" : {
42+ "command" : " /usr/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1 -BuildModule -InstallAndTestModule"
43+ },
44+ "osx" : {
45+ "command" : " /usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1 -BuildModule -InstallAndTestModule"
46+ },
47+ "group" : {
48+ "kind" : " build" ,
49+ "isDefault" : true
50+ },
51+ "presentation" : {
52+ "reveal" : " always" ,
53+ "panel" : " new"
54+ }
4855 },
4956 {
50- "taskName" : " Build, Install, Load, and Publish Module" ,
51- "suppressTaskName" : true ,
52- "isBuildCommand" : true ,
53- "args" : [
54- " Invoke-Build -Task BuildInstallTestAndPublishModule"
55- ],
56- "problemMatcher" : []
57+ "label" : " Build, Install, Load, and Publish Module" ,
58+ "type" : " shell" ,
59+ "windows" : {
60+ "command" : " powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\ Build.ps1 -BuildModule -InstallAndTestModule -UploadPSGallery"
61+ },
62+ "linux" : {
63+ "command" : " /usr/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1 -BuildModule -InstallAndTestModule -UploadPSGallery"
64+ },
65+ "osx" : {
66+ "command" : " /usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1 -BuildModule -InstallAndTestModule -UploadPSGallery"
67+ },
68+ "group" : {
69+ "kind" : " build" ,
70+ "isDefault" : true
71+ },
72+ "presentation" : {
73+ "reveal" : " always" ,
74+ "panel" : " new"
75+ }
5776 },
5877 {
59- "taskName" : " Install and Load Module" ,
60- "suppressTaskName" : true ,
61- "isBuildCommand" : true ,
62- "args" : [
63- " Invoke-Build -Task InstallAndTestModule"
64- ]
65- },
66- {
67- "taskName" : " Publish to PSGallery" ,
68- "suppressTaskName" : true ,
69- "isBuildCommand" : true ,
70- "args" : [
71- " Invoke-Build -Task PublishPSGallery"
72- ]
73- },
74- {
75- "taskName" : " Analyze" ,
76- "suppressTaskName" : true ,
77- "args" : [
78- " Invoke-Build -Task AnalyzePublic"
79- ]
80- },
81- {
82- "taskName" : " InsertMissingCBH" ,
83- "suppressTaskName" : true ,
84- "args" : [
85- " Invoke-Build InsertMissingCBH"
86- ]
87- },
88- {
89- "taskName" : " Test" ,
90- "suppressTaskName" : true ,
91- "isTestCommand" : true ,
92- "showOutput" : " always" ,
93- "args" : [
94- " Write-Host 'Invoking Pester'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};" ,
95- " Invoke-Command { Write-Host 'Completed Test task in task runner.' }"
96- ],
97- "problemMatcher" : [
98- {
99- "owner" : " powershell" ,
100- "fileLocation" : [
101- " absolute"
102- ],
103- "severity" : " error" ,
104- "pattern" : [
105- {
106- "regexp" : " ^\\ s*(\\ [-\\ ]\\ s*.*?)(\\ d+)ms\\ s*$" ,
107- "message" : 1
108- },
109- {
110- "regexp" : " ^\\ s+at\\ s+[^,]+,\\ s*(.*?):\\ s+line\\ s+(\\ d+)$" ,
111- "file" : 1 ,
112- "line" : 2
113- }
114- ]
115- }
116- ]
78+ "label" : " Insert Missing Comment Based Help" ,
79+ "type" : " shell" ,
80+ "windows" : {
81+ "command" : " powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\ Build.ps1 -InsertMissingCBH"
82+ },
83+ "linux" : {
84+ "command" : " /usr/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1 -InsertMissingCBH"
85+ },
86+ "osx" : {
87+ "command" : " /usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\ Build.ps1 -InsertMissingCBH"
88+ },
89+ "group" : {
90+ "kind" : " build" ,
91+ "isDefault" : true
92+ },
93+ "presentation" : {
94+ "reveal" : " always" ,
95+ "panel" : " new"
96+ }
11797 }
11898 ]
119- }
99+ }
0 commit comments