Skip to content

Commit 2b1dfe9

Browse files
committed
chore(vscode): update debug and task configs for Jekyll
- switch launch config from `pwa-chrome` to `chrome` because it's deprecated - rename preLaunchTask to `Serve` - rename `Run Jekyll` task to `Serve` and enable livereload - add build task and problem matchers - align with VS Code task/launch integration per https://code.visualstudio.com/docs/debugtest/tasks
1 parent 8cbc0c3 commit 2b1dfe9

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"configurations": [
44
{
55
"name": "Debug Jekyll",
6-
"type": "pwa-chrome",
6+
"type": "chrome",
77
"request": "launch",
88
"url": "http://127.0.0.1:4000",
99
"webRoot": "${workspaceFolder}",
10-
"preLaunchTask": "Run Jekyll"
10+
"preLaunchTask": "Serve"
1111
}
1212
]
1313
}

.vscode/tasks.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "Run Jekyll",
5+
"label": "Serve",
66
"type": "shell",
7-
"command": "mise exec -- bundle exec jekyll serve",
7+
"command": "mise exec -- bundle exec jekyll serve --livereload",
8+
"group": {
9+
"kind": "test",
10+
"isDefault": true
11+
},
812
"isBackground": true,
9-
"problemMatcher": []
13+
"problemMatcher": ["$jekyll-error-watch", "$jekyll-warning-watch"]
14+
},
15+
{
16+
"label": "Build",
17+
"type": "shell",
18+
"command": "mise exec -- bundle exec jekyll build",
19+
"group": "build",
20+
"problemMatcher": ["$jekyll-error", "$jekyll-warning"],
1021
}
1122
]
1223
}

0 commit comments

Comments
 (0)