Skip to content

Commit 8b67404

Browse files
committed
Migrate tasks to workspace
1 parent 9a3ae68 commit 8b67404

File tree

2 files changed

+139
-73
lines changed

2 files changed

+139
-73
lines changed

.vscode/tasks.json

Lines changed: 0 additions & 73 deletions
This file was deleted.

extension-dev.code-workspace

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"folders": [
33
{
4+
"name": "Client",
45
"path": "."
56
},
67
{
8+
"name": "Server",
79
"path": "../PowerShellEditorServices"
810
}
911
],
@@ -31,6 +33,143 @@
3133
"powershell.codeFormatting.whitespaceBetweenParameters": true,
3234
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline"
3335
},
36+
"tasks": {
37+
"version": "2.0.0",
38+
"windows": {
39+
"options": {
40+
"shell": {
41+
"executable": "pwsh.exe",
42+
"args": [
43+
"-NoProfile",
44+
"-ExecutionPolicy",
45+
"Bypass",
46+
"-Command"
47+
]
48+
}
49+
}
50+
},
51+
"linux": {
52+
"options": {
53+
"shell": {
54+
"executable": "pwsh",
55+
"args": [
56+
"-NoProfile",
57+
"-Command"
58+
]
59+
}
60+
}
61+
},
62+
"osx": {
63+
"options": {
64+
"shell": {
65+
"executable": "/usr/local/bin/pwsh",
66+
"args": [
67+
"-NoProfile",
68+
"-Command"
69+
]
70+
}
71+
}
72+
},
73+
"tasks": [
74+
{
75+
"label": "Build",
76+
"type": "shell",
77+
"options": {
78+
"cwd": "${workspaceFolder:Client}"
79+
},
80+
"command": "Invoke-Build LinkEditorServices,Build",
81+
"problemMatcher": [
82+
"$msCompile",
83+
"$tsc"
84+
],
85+
"group": {
86+
"kind": "build",
87+
"isDefault": true
88+
}
89+
},
90+
{
91+
"label": "Test Client",
92+
"type": "shell",
93+
"options": {
94+
"cwd": "${workspaceFolder:Client}"
95+
},
96+
"command": "Invoke-Build LinkEditorServices,Test",
97+
"problemMatcher": [
98+
"$msCompile",
99+
"$tsc"
100+
],
101+
"group": {
102+
"kind": "test",
103+
"isDefault": true
104+
}
105+
},
106+
{
107+
"label": "Test Server",
108+
"type": "shell",
109+
"options": {
110+
"cwd": "${workspaceFolder:Server}"
111+
},
112+
"problemMatcher": [
113+
"$msCompile"
114+
],
115+
"command": "Invoke-Build TestServerPS72",
116+
"group": {
117+
"kind": "test",
118+
"isDefault": true
119+
}
120+
},
121+
{
122+
"label": "Invoke-Build Client",
123+
"type": "shell",
124+
"options": {
125+
"cwd": "${workspaceFolder:Client}"
126+
},
127+
"command": "Invoke-Build ${input:clientBuildCommand}",
128+
"group": "build"
129+
},
130+
{
131+
"label": "Invoke-Build Server",
132+
"type": "shell",
133+
"options": {
134+
"cwd": "${workspaceFolder:Server}"
135+
},
136+
"command": "Invoke-Build ${input:serverBuildCommand}",
137+
"group": "build"
138+
}
139+
],
140+
"inputs": [
141+
{
142+
"type": "pickString",
143+
"id": "clientBuildCommand",
144+
"description": "Which Invoke-Build Client Task?",
145+
"options": [
146+
"Restore",
147+
"Clean",
148+
"LinkEditorServices",
149+
"Build",
150+
"Test",
151+
"Package"
152+
],
153+
"default": "Clean"
154+
},
155+
{
156+
"type": "pickString",
157+
"id": "serverBuildCommand",
158+
"description": "Which Invoke-Build Server Task?",
159+
"options": [
160+
"SetupDotNet",
161+
"BinClean",
162+
"Clean",
163+
"Build",
164+
"Test",
165+
"TestServer",
166+
"TestServerPS72",
167+
"TestE2E",
168+
],
169+
"default": "Clean"
170+
}
171+
]
172+
},
34173
"launch": {
35174
"version": "0.2.0",
36175
"configurations": [

0 commit comments

Comments
 (0)