From 12ff1cb405e102630c59c5bed94c6d26b02e16c6 Mon Sep 17 00:00:00 2001 From: Leif Walsh Date: Sat, 11 Nov 2023 20:18:20 +0000 Subject: [PATCH] update devcontainer config - use new .customizations.vscode subdoc - update better toml to even better toml - add makefile tools --- .devcontainer/devcontainer.json | 100 +++++++++++++++++--------------- 1 file changed, 53 insertions(+), 47 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1449814..0e91071 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,58 +5,64 @@ "build": { "dockerfile": "Dockerfile" }, - "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], - - // Set *default* container specific settings.json values on container create. - "settings": { - "terminal.integrated.profiles.linux": { - "bash": { - "path": "bash", - "icon": "terminal-bash" - }, - "zsh": { - "path": "zsh" - }, - "fish": { - "path": "fish" - }, - "tmux": { - "path": "tmux", - "icon": "terminal-tmux" + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" + ], + "customizations": { + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "terminal.integrated.profiles.linux": { + "bash": { + "path": "bash", + "icon": "terminal-bash" + }, + "zsh": { + "path": "zsh" + }, + "fish": { + "path": "fish" + }, + "tmux": { + "path": "tmux", + "icon": "terminal-tmux" + }, + "pwsh": { + "path": "pwsh", + "icon": "terminal-powershell" + } + }, + "terminal.integrated.defaultProfile.linux": "bash", + "lldb.executable": "/usr/bin/lldb", + // VS Code don't watch files under ./target + "files.watcherExclude": { + "**/target/**": true + }, + "git.autofetch": true, + "git.branchProtection": [ + "main" + ] }, - "pwsh": { - "path": "pwsh", - "icon": "terminal-powershell" - } - }, - "terminal.integrated.defaultProfile.linux": "bash", - "lldb.executable": "/usr/bin/lldb", - // VS Code don't watch files under ./target - "files.watcherExclude": { - "**/target/**": true - }, - "git.autofetch": true, - "git.branchProtection": ["main"] + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "matklad.rust-analyzer", + "tamasfe.even-better-toml", + "vadimcn.vscode-lldb", + "mutantdino.resourcemonitor", + "stkb.rewrap", + "github.vscode-pull-request-github", + "dawidd6.debian-vscode", + "coolbear.systemd-unit-file", + "ms-vscode.makefile-tools" + ] + } }, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "matklad.rust-analyzer", - "bungcip.better-toml", - "vadimcn.vscode-lldb", - "mutantdino.resourcemonitor", - "stkb.rewrap", - "github.vscode-pull-request-github", - "dawidd6.debian-vscode", - "coolbear.systemd-unit-file" - ], - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "rustc --version", - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" -} +} \ No newline at end of file