Skip to content

Commit eedbb6e

Browse files
committed
Updates scripts/docs for debugging in vscode.dev
1 parent 0f19147 commit eedbb6e

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

.vscode/tasks.json

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@
2020
"type": "npm",
2121
"script": "build",
2222
"group": "build",
23-
"problemMatcher": ["$ts-checker-webpack", "$ts-checker-eslint-webpack"]
23+
"problemMatcher": [
24+
"$ts-checker-webpack",
25+
"$ts-checker-eslint-webpack"
26+
]
2427
},
2528
{
2629
"type": "npm",
2730
"script": "lint",
2831
"group": "build",
29-
"problemMatcher": ["$eslint-stylish"]
32+
"problemMatcher": [
33+
"$eslint-stylish"
34+
]
3035
},
3136
{
3237
"type": "npm",
@@ -39,7 +44,10 @@
3944
"presentation": {
4045
"group": "watchers"
4146
},
42-
"problemMatcher": ["$ts-checker-webpack-watch", "$ts-checker-eslint-webpack-watch"]
47+
"problemMatcher": [
48+
"$ts-checker-webpack-watch",
49+
"$ts-checker-eslint-webpack-watch"
50+
]
4351
},
4452
{
4553
"label": "Run (local web)",
@@ -55,12 +63,6 @@
5563
},
5664
{
5765
"label": "Run (vscode.dev)",
58-
"group": "test",
59-
"dependsOn": ["npm: web:serve", "npm: web:tunnel"],
60-
"dependsOrder": "parallel",
61-
"problemMatcher": []
62-
},
63-
{
6466
"type": "npm",
6567
"script": "web:serve",
6668
"group": "test",
@@ -71,17 +73,6 @@
7173
},
7274
"problemMatcher": []
7375
},
74-
{
75-
"type": "npm",
76-
"script": "web:tunnel",
77-
"group": "test",
78-
"isBackground": true,
79-
"presentation": {
80-
"group": "web",
81-
"reveal": "always"
82-
},
83-
"problemMatcher": []
84-
},
8576
{
8677
"type": "npm",
8778
"script": "watch:tests",

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ See https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-
125125

126126
#### Using VS Code for the Web (vscode.dev)
127127

128-
See https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-web-extension-in-on-vscode.dev
128+
See https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-web-extension-in-vscode.dev
129129

130130
1. Open the `vscode-gitlens` folder
131131
2. Ensure the required [dependencies](#dependencies) are installed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14619,8 +14619,7 @@
1461914619
"watch:tests": "concurrently \"tsc-alias -p tsconfig.test.json -w\" \"tsc -p tsconfig.test.json -w\"",
1462014620
"-watch:tests": "webpack --watch -c webpack.config.test.js --mode development",
1462114621
"web": "vscode-test-web --extensionDevelopmentPath=. --folder-uri=vscode-vfs://github/gitkraken/vscode-gitlens",
14622-
"web:serve": "npx serve --cors -l 5000",
14623-
"web:tunnel": "npx localtunnel -p 5000",
14622+
"web:serve": "node -e \"const p = require('path'); const h = require('os').homedir(); require('child_process').execSync(`npx serve --cors -l 5000 --ssl-cert ${p.resolve(h, 'certs/localhost.pem')} --ssl-key ${p.resolve(h, 'certs/localhost-key.pem')}`, { stdio: 'inherit' })\"",
1462414623
"update-dts": "pushd \"src/@types\" && npx vscode-dts dev && popd",
1462514624
"update-dts:master": "pushd \"src/@types\" && npx vscode-dts master && popd",
1462614625
"update-emoji": "node ./scripts/generateEmojiShortcodeMap.mjs",

0 commit comments

Comments
 (0)