set up regolith watch when debugging

This commit is contained in:
ForestOfLight
2025-07-02 20:29:04 -07:00
Unverified
parent 657467f49d
commit bff7024021
3 changed files with 59 additions and 1 deletions
-1
View File
@@ -1,4 +1,3 @@
.DS_Store .DS_Store
.vscode/
/build /build
/.regolith /.regolith
+15
View File
@@ -0,0 +1,15 @@
{
"version": "0.3.0",
"configurations": [
{
"type": "minecraft-js",
"request": "attach",
"name": "Debug with Minecraft",
"mode": "listen",
"targetModuleUuid": "8bb9a1e4-0531-4b93-8ade-3880bfe1e2fc",
"localRoot": "${workspaceFolder}/packs/BP/scripts",
"port": 19144,
"preLaunchTask": "regolith: watch"
}
]
}
+44
View File
@@ -0,0 +1,44 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "regolith: run",
"type": "shell",
"command": "regolith run",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"close": true
}
},
{
"label": "regolith: watch",
"type": "shell",
"command": "regolith watch",
"isBackground": true,
"problemMatcher": {
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": "."
}
},
"presentation": {
"echo": true,
"close": true
}
}
]
}