Add VScode settings

This commit is contained in:
benjamin melançon 2025-03-28 15:38:34 -04:00
parent 2b6e193c87
commit 5d90466e1d
4 changed files with 52 additions and 0 deletions

16
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"hostname": "0.0.0.0",
"port": 9003,
"pathMappings": {
"/var/www/html": "${workspaceFolder}"
},
"preLaunchTask": "DDEV: Enable Xdebug",
"postDebugTask": "DDEV: Disable Xdebug"
}
]
}

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"intelephense.environment.phpVersion": "8.1"
}

23
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,23 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "DDEV: Enable Xdebug",
"type": "shell",
"command": "ddev xdebug on",
"presentation": {
"reveal": "silent",
"close": true
}
},
{
"label": "DDEV: Disable Xdebug",
"type": "shell",
"command": "ddev xdebug off",
"presentation": {
"reveal": "silent",
"close": true
}
}
]
}

10
geo-coop.code-workspace Normal file
View file

@ -0,0 +1,10 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"intelephense.environment.phpVersion": "8.1"
}
}