Skip to content

Commit 82ac904

Browse files
authored
add run code web launches (microsoft#162364)
1 parent 46afa5b commit 82ac904

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,33 @@
322322
"order": 3
323323
}
324324
},
325+
{
326+
"type": "chrome",
327+
"request": "launch",
328+
"outFiles": [],
329+
"perScriptSourcemaps": "yes",
330+
"name": "VS Code Web (Chrome)",
331+
"url": "http://localhost:8080",
332+
"preLaunchTask": "Run code web",
333+
"presentation": {
334+
"group": "0_vscode",
335+
"order": 3
336+
}
337+
},
338+
{
339+
"type": "msedge",
340+
"request": "launch",
341+
"outFiles": [],
342+
"perScriptSourcemaps": "yes",
343+
"name": "VS Code Web (Edge)",
344+
"url": "http://localhost:8080",
345+
"pauseForSourceMap": false,
346+
"preLaunchTask": "Run code web",
347+
"presentation": {
348+
"group": "0_vscode",
349+
"order": 3
350+
}
351+
},
325352
{
326353
"type": "node",
327354
"request": "launch",

.vscode/tasks.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,28 @@
203203
"reveal": "never"
204204
}
205205
},
206+
{
207+
"type": "shell",
208+
"command": "./scripts/code-web.sh",
209+
"windows": {
210+
"command": ".\\scripts\\code-web.bat"
211+
},
212+
"args": ["--port", "8080", "--browser", "none"],
213+
"label": "Run code web",
214+
"isBackground": true,
215+
"problemMatcher": {
216+
"pattern": {
217+
"regexp": ""
218+
},
219+
"background": {
220+
"beginsPattern": ".*node .*",
221+
"endsPattern": "Listening on .*"
222+
}
223+
},
224+
"presentation": {
225+
"reveal": "never"
226+
}
227+
},
206228
{
207229
"type": "npm",
208230
"script": "eslint",

0 commit comments

Comments
 (0)