add run code web launches (#162364)

This commit is contained in:
Sandeep Somavarapu 2022-09-29 17:45:27 +02:00 committed by GitHub
parent 46afa5b108
commit 82ac904296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

27
.vscode/launch.json vendored
View file

@ -322,6 +322,33 @@
"order": 3
}
},
{
"type": "chrome",
"request": "launch",
"outFiles": [],
"perScriptSourcemaps": "yes",
"name": "VS Code Web (Chrome)",
"url": "http://localhost:8080",
"preLaunchTask": "Run code web",
"presentation": {
"group": "0_vscode",
"order": 3
}
},
{
"type": "msedge",
"request": "launch",
"outFiles": [],
"perScriptSourcemaps": "yes",
"name": "VS Code Web (Edge)",
"url": "http://localhost:8080",
"pauseForSourceMap": false,
"preLaunchTask": "Run code web",
"presentation": {
"group": "0_vscode",
"order": 3
}
},
{
"type": "node",
"request": "launch",

22
.vscode/tasks.json vendored
View file

@ -203,6 +203,28 @@
"reveal": "never"
}
},
{
"type": "shell",
"command": "./scripts/code-web.sh",
"windows": {
"command": ".\\scripts\\code-web.bat"
},
"args": ["--port", "8080", "--browser", "none"],
"label": "Run code web",
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": ""
},
"background": {
"beginsPattern": ".*node .*",
"endsPattern": "Listening on .*"
}
},
"presentation": {
"reveal": "never"
}
},
{
"type": "npm",
"script": "eslint",