1
|
{
|
2
|
"folders": [
|
3
|
{
|
4
|
"path": "."
|
5
|
}
|
6
|
],
|
7
|
"settings": {
|
8
|
"php.suggest.basic":false,
|
9
|
"files.autoSave": "afterDelay",
|
10
|
"php-cs-fixer.executablePath": "/var/www/symfony/vendor/bin/php-cs-fixer",
|
11
|
"php-cs-fixer.config": ".php_cs;.php_cs.dist",
|
12
|
"php-cs-fixer.onsave": true
|
13
|
},
|
14
|
"extensions": {
|
15
|
"recommendations": [
|
16
|
"vscode-icons-team.vscode-icons",
|
17
|
"felixfbecker.php-intellisense",
|
18
|
"whatwedo.twig",
|
19
|
"felixfbecker.php-debug",
|
20
|
"junstyle.php-cs-fixer"
|
21
|
]
|
22
|
},
|
23
|
"tasks": {
|
24
|
"version": "2.0.0",
|
25
|
"tasks": [{
|
26
|
"label": "PHP Linter (DOCKER SERVICE)",
|
27
|
"command": "docker-compose",
|
28
|
"args": ["exec", "php-fpm", "./vendor/bin/php-cs-fixer", "fix", "/var/www/symfony/src", "--dry-run", "--config", "/var/www/symfony/.php_cs", "--stop-on-violation", "--using-cache=no"],
|
29
|
"windows":{
|
30
|
"command": "docker-compose",
|
31
|
"args": ["exec", "php-fpm","./vendor/bin/php-cs-fixer", "fix", "/var/www/symfony/src", "--dry-run", "--config", "/var/www/symfony/.php_cs", "--stop-on-violation", "--using-cache=no"],
|
32
|
}
|
33
|
},
|
34
|
{
|
35
|
"label": "Format (DOCKER SERVICE)",
|
36
|
"command": "docker-compose",
|
37
|
"args": ["exec", "php-fpm", "/var/www/symfony/vendor/bin/php-cs-fixer", "fix", "/var/www/symfony/src", "--config", "/var/www/symfony/.php_cs"],
|
38
|
"windows":{
|
39
|
"command": "docker-compose",
|
40
|
"args": ["exec", "php-fpm", "/var/www/symfony/vendor/bin/php-cs-fixer", "fix", "/var/www/symfony/src", "--config", "/var/www/symfony/.php_cs"],
|
41
|
}
|
42
|
},{
|
43
|
"label": "PHP Linter",
|
44
|
"command": "docker-compose",
|
45
|
"args": ["exec", "php-fpm", "./vendor/bin/php-cs-fixer", "fix", "/var/www/symfony/src", "--dry-run", "--config", "/var/www/symfony/.php_cs", "--stop-on-violation", "--using-cache=no"],
|
46
|
"windows":{
|
47
|
"command": "docker-compose",
|
48
|
"args": ["exec", "php-fpm","./vendor/bin/php-cs-fixer", "fix", "/var/www/symfony/src", "--dry-run", "--config", "/var/www/symfony/.php_cs", "--stop-on-violation", "--using-cache=no"],
|
49
|
}
|
50
|
},
|
51
|
{
|
52
|
"label": "Format",
|
53
|
"command": "./vendor/bin/php-cs-fixer",
|
54
|
"args": ["fix", "/var/www/symfony/src", "--config", "/var/www/symfony/.php_cs"],
|
55
|
"windows":{
|
56
|
"command": "./vendor/bin/php-cs-fixer",
|
57
|
"args": ["fix", "/var/www/symfony/src", "--config", "/var/www/symfony/.php_cs"],
|
58
|
}
|
59
|
}]
|
60
|
},
|
61
|
"launch": {
|
62
|
"configurations": [
|
63
|
{
|
64
|
"name": "Listen for XDebug",
|
65
|
"type": "php",
|
66
|
"request": "launch",
|
67
|
"log": true,
|
68
|
"pathMappings": {
|
69
|
"/var/www/symfony": "${workspaceFolder}/"
|
70
|
},
|
71
|
"port": 9001
|
72
|
}]
|
73
|
}
|
74
|
}
|