diff --git a/.devcontainer/devcontainer.json b/.devcontainer/default/devcontainer.json similarity index 100% rename from .devcontainer/devcontainer.json rename to .devcontainer/default/devcontainer.json diff --git a/.devcontainer/post_create_command.sh b/.devcontainer/default/post_create_command.sh similarity index 100% rename from .devcontainer/post_create_command.sh rename to .devcontainer/default/post_create_command.sh diff --git a/.devcontainer/frontend/devcontainer.json b/.devcontainer/frontend/devcontainer.json new file mode 100644 index 00000000..22f43374 --- /dev/null +++ b/.devcontainer/frontend/devcontainer.json @@ -0,0 +1,15 @@ +{ + "name": "Open-Assistant", + "image": "mcr.microsoft.com/vscode/devcontainers/universal", + "features": { + "ghcr.io/devcontainers-contrib/features/pre-commit:2": { + "version": "latest" + } + }, + "postCreateCommand": "bash .devcontainer/post_create_command.sh", + "customizations": { + "vscode": { + "extensions": ["GitHub.copilot"] + } + } +} diff --git a/.devcontainer/frontend/post_create_command.sh b/.devcontainer/frontend/post_create_command.sh new file mode 100644 index 00000000..983576b9 --- /dev/null +++ b/.devcontainer/frontend/post_create_command.sh @@ -0,0 +1,2 @@ +# ensure pre-commit is installed +pre-commit install