Skip to content

Commit c6f272c

Browse files
committed
messing with launch tasks
1 parent 4ac2fbf commit c6f272c

File tree

3 files changed

+22
-51
lines changed

3 files changed

+22
-51
lines changed

.vscode/launch.json

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,14 @@
11
{
2-
"version": "0.2.0",
2+
"version": "2.0.0",
33
"configurations": [
44
{
55
"type": "firefox",
66
"request": "launch",
7-
"reAttach": true,
8-
"name": "Launch Firefox (Dev Edition)",
9-
"url": "http://localhost:1313/",
10-
"webRoot": "${workspaceFolder}",
11-
"pathMappings": [
12-
{
13-
"url": "http://localhost:1313",
14-
"path": "${workspaceFolder}"
15-
}
16-
],
17-
"firefoxExecutable": "/usr/bin/firefox-devedition",
18-
"preLaunchTask": "start server"
19-
},
20-
{
21-
"type": "msedge",
22-
"name": "Launch Microsoft Edge",
23-
"request": "launch",
7+
"name": "Launch localhost",
248
"url": "http://localhost:1313",
25-
"presentation": {
26-
"hidden": true
27-
},
289
"webRoot": "${workspaceFolder}",
29-
"preLaunchTask": "start server"
30-
},
31-
{
32-
"type": "vscode-edge-devtools.debug",
33-
"name": "Open Edge DevTools",
34-
"request": "attach",
35-
"url": "http://localhost:1313",
36-
"presentation": {
37-
"hidden": true
38-
},
39-
"webRoot": "${workspaceFolder}"
40-
}
41-
],
42-
"compounds": [
43-
{
44-
"name": "Launch Edge and attach DevTools",
45-
"configurations": [
46-
"Launch Microsoft Edge",
47-
"Open Edge DevTools"
48-
]
10+
"preLaunchTask": "start server",
11+
"postDebugTask": "stop server",
4912
}
5013
]
5114
}

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"peacock.color": "#832561",
3-
"vscode-edge-devtools.browserFlavor": "Stable",
4-
"vscode-edge-devtools.webRoot": "${workspaceFolder}/public",
5-
"workbench.externalBrowser": "/usr/bin/firefox-devedition"
3+
"html.format.templating": true
64
}

.vscode/tasks.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,32 @@
33
"tasks": [
44
{
55
"label": "start server",
6-
"command": "hugo",
76
"type": "shell",
7+
"command": "hugo",
88
"args": [
99
"server",
1010
"--buildDrafts",
1111
"--buildFuture",
12+
"--bind=0.0.0.0",
1213
"--baseURL=http://localhost:1313",
1314
"--port",
1415
"1313",
1516
"--noTimes"
1617
],
18+
"isBackground": true,
1719
"presentation": {
1820
"reveal": "always",
1921
"panel": "dedicated"
2022
},
21-
"isBackground": true,
2223
"problemMatcher": [
2324
{
2425
"owner": "hugo",
25-
"fileLocation": "absolute",
26+
"fileLocation": [
27+
"relative",
28+
"${workspaceFolder}"
29+
],
2630
"pattern": {
27-
"regexp": "^(Error):.*\"(.*?):(\\d*):(\\d*)\": (.*)",
28-
"severity": 1,
31+
"regexp": "^Error: (.*): (.*):(\\d+):(\\d+): (.*)$",
2932
"file": 2,
3033
"line": 3,
3134
"column": 4,
@@ -34,11 +37,18 @@
3437
"background": {
3538
"activeOnStart": false,
3639
"beginsPattern": "^Start building .*",
37-
"endsPattern": "^Total in .*"
40+
"endsPattern": "^",
3841
}
3942
}
4043
],
41-
"group": "build"
44+
"runOptions": {
45+
"runOn": "folderOpen",
46+
"instanceLimit": 1
47+
},
48+
"group": {
49+
"kind": "build",
50+
"isDefault": true
51+
}
4252
}
4353
]
4454
}

0 commit comments

Comments
 (0)