From 412c4f708e7bfde101f7b79d2e445715aef6da51 Mon Sep 17 00:00:00 2001 From: Mark Li Date: Sun, 16 Jul 2023 03:47:58 +0000 Subject: [PATCH] limit port forwarding and add workspace file --- .devcontainer/devcontainer.json | 13 +++++++++++++ fixtures/multi-folder.code-workspace | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 fixtures/multi-folder.code-workspace diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 73691cd..219e858 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,5 +12,18 @@ "amodio.tsl-problem-matcher" ] } + }, + "portsAttributes": { + "8000": { + "label": "Laravel", + "onAutoForward": "openBrowser" + }, + "8080": { + "label": "Slim", + "onAutoForward": "openBrowser" + } + }, + "otherPortsAttributes": { + "onAutoForward": "ignore" } } diff --git a/fixtures/multi-folder.code-workspace b/fixtures/multi-folder.code-workspace new file mode 100644 index 0000000..76e3ca2 --- /dev/null +++ b/fixtures/multi-folder.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "sample-laravel-app" + }, + { + "path": "sample-slim-webapp" + } + ], + "settings": {} +} \ No newline at end of file