From 5d90466e1dee8e344b90d0a3766ca5b320b39dd8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?benjamin=20melan=C3=A7on?= <ben@agaric.coop>
Date: Fri, 28 Mar 2025 15:38:34 -0400
Subject: [PATCH] Add VScode settings

---
 .vscode/launch.json     | 16 ++++++++++++++++
 .vscode/settings.json   |  3 +++
 .vscode/tasks.json      | 23 +++++++++++++++++++++++
 geo-coop.code-workspace | 10 ++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 .vscode/launch.json
 create mode 100644 .vscode/settings.json
 create mode 100644 .vscode/tasks.json
 create mode 100644 geo-coop.code-workspace

diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..8c45cc4
--- /dev/null
+++ b/.vscode/launch.json
@@ -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"
+    }
+  ]
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..f8df0f8
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+  "intelephense.environment.phpVersion": "8.1"
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..128c7cf
--- /dev/null
+++ b/.vscode/tasks.json
@@ -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
+			}
+		}
+	]
+}
\ No newline at end of file
diff --git a/geo-coop.code-workspace b/geo-coop.code-workspace
new file mode 100644
index 0000000..07d3e69
--- /dev/null
+++ b/geo-coop.code-workspace
@@ -0,0 +1,10 @@
+{
+	"folders": [
+		{
+			"path": "."
+		}
+	],
+	"settings": {
+		"intelephense.environment.phpVersion": "8.1"
+	}
+}
\ No newline at end of file