From 368ca9be7e842e7c9d1975746a264d4463162ae3 Mon Sep 17 00:00:00 2001 From: Okinea Dev <81070564+okineadev@users.noreply.github.com> Date: Sat, 11 May 2024 12:00:43 +0300 Subject: [PATCH] Added `devcontainer.json` (#2319) * Added `devcontainer.json` * Changed `"onCreateCommand"` to `"postCreateCommand"` * Added `jock.svg` to preinstalled extensions --------- Co-authored-by: Philipp Kief --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..ed8c19cbfd --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "vscode-material-icon-theme", + + // Use Microsoft's Ubuntu Base image for the dev container + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "features": { + // Use NodeJS features in the dev container + "ghcr.io/devcontainers/features/node:1": {} + }, + + "privileged": true, + + "postCreateCommand": { + // Install NPM dependencies in the dev container + "install-node-packages": "npm install" + }, + + "customizations": { + "vscode": { + "settings": { + // Define suggested settings for the dev container + "resmon.show.battery": false, + "resmon.show.cpufreq": false + }, + "extensions": [ + // Define suggested extensions to preinstall in the dev container + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "jock.svg" + ] + } + } +}