mirror of
https://github.com/immich-app/immich.git
synced 2026-02-12 11:58:15 +03:00
VSCode expect tasks that aren't marked as background tasks to finish eventually. That's not how a dev-server is supposed to work, we expect it to run for basically infinite time. By marking those tasks as background tasks, VSCode stops showing the infinite loading spinner on those processes.
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Fix Permissions, Install Dependencies",
|
|
"type": "shell",
|
|
"command": "[ -f /immich-devcontainer/container-start.sh ] && /immich-devcontainer/container-start.sh || exit 0",
|
|
"isBackground": true,
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "dedicated",
|
|
"showReuseMessage": true,
|
|
"clear": false,
|
|
"group": "Devcontainer tasks",
|
|
"close": true
|
|
},
|
|
"runOptions": {
|
|
"runOn": "default"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Immich API Server (Nest)",
|
|
"dependsOn": ["Fix Permissions, Install Dependencies"],
|
|
"type": "shell",
|
|
"command": "[ -f /immich-devcontainer/container-start-backend.sh ] && /immich-devcontainer/container-start-backend.sh || exit 0",
|
|
"isBackground": true,
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "dedicated",
|
|
"showReuseMessage": true,
|
|
"clear": false,
|
|
"group": "Devcontainer tasks",
|
|
"close": true
|
|
},
|
|
"runOptions": {
|
|
"runOn": "default"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Immich Web Server (Vite)",
|
|
"dependsOn": ["Fix Permissions, Install Dependencies"],
|
|
"type": "shell",
|
|
"command": "[ -f /immich-devcontainer/container-start-frontend.sh ] && /immich-devcontainer/container-start-frontend.sh || exit 0",
|
|
"isBackground": true,
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "dedicated",
|
|
"showReuseMessage": true,
|
|
"clear": false,
|
|
"group": "Devcontainer tasks",
|
|
"close": true
|
|
},
|
|
"runOptions": {
|
|
"runOn": "default"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Immich Server and Web",
|
|
"dependsOn": ["Immich Web Server (Vite)", "Immich API Server (Nest)"],
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|