summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-07-31 09:49:09 +0300
committerAndrew Dolgov <[email protected]>2022-07-31 09:49:09 +0300
commitff1845320583f6ed8c831eade58ba3b841815a48 (patch)
treedb672a6126b031569c345cf31961ffebd6374bad /.vscode
parentff7e99b986c7159799e0c2e64ddddf644d413d56 (diff)
enable phpstan task to run in background
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/tasks.json13
1 files changed, 10 insertions, 3 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 30bf4412b..a5aa65f30 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -3,7 +3,8 @@
"tasks": [
{
"type": "shell",
- "label": "phpstan-8.1",
+ "label": "phpstan-8.1 (background)",
+ "isBackground": true,
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"owner": "phpstan-8.1",
@@ -12,13 +13,19 @@
"file": 1,
"line": 2,
"message": 3
+ },
+ "background": {
+ "activeOnStart": true,
+ "beginsPattern": "Using configuration file",
+ "endsPattern": "All done"
+
}
},
- "command": "docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan --workdir /app php:8.1-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true",
+ "command": "while true; do docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan --workdir /app php:8.1-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true; echo 'All done'; sleep 30; done",
},
{
"type": "shell",
- "label": "phpstan-8.0",
+ "label": "phpstan-8.0 (run once)",
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"owner": "phpstan-8.0",