From 3c2276aed16a48446479beca3dcfc750719c1d51 Mon Sep 17 00:00:00 2001 From: Laurent Sorber Date: Wed, 19 Aug 2026 11:37:44 +0200 Subject: [PATCH] feat: minimize devcontainer.json extensions and settings --- .devcontainer/devcontainer.json | 30 +++++-------------- .../.devcontainer/devcontainer.json.jinja | 25 +++++----------- 2 files changed, 16 insertions(+), 39 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fe621d17..38d95275 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -24,23 +24,20 @@ "astral-sh.ty", "charliermarsh.ruff", "DavidAnson.vscode-markdownlint", - "GitHub.copilot-chat", "GitHub.vscode-github-actions", "GitHub.vscode-pull-request-github", - "ms-azuretools.vscode-docker", + "ms-azuretools.vscode-containers", "ms-python.python", "tamasfe.even-better-toml" ], "settings": { - "chat.extensionUnification.enabled": true, - "editor.bracketPairColorization.enabled": true, - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "source.organizeImports": "explicit" - }, - "editor.formatOnSave": true, "[python]": { - "editor.defaultFormatter": "charliermarsh.ruff" + "editor.codeActionsOnSave": { + "source.fixAll.ruff": "explicit", + "source.organizeImports.ruff": "explicit" + }, + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true }, "[toml]": { "editor.formatOnSave": false @@ -48,25 +45,14 @@ "editor.rulers": [ 100 ], - "files.autoSave": "onFocusChange", - "github.copilot.chat.codesearch.enabled": true, "jupyter.kernels.excludePythonEnvironments": [ "/usr/local/bin/python" ], - "notebook.codeActionsOnSave": { - "notebook.source.fixAll": "explicit", - "notebook.source.organizeImports": "explicit" - }, - "notebook.formatOnSave.enabled": true, + "python-envs.terminal.autoActivationType": "off", "python.defaultInterpreterPath": "/opt/venv/bin/python", - "python.languageServer": "None", - "python.terminal.activateEnvironment": false, "python.testing.pytestEnabled": true, "terminal.integrated.env.linux": { "GIT_EDITOR": "code --wait" - }, - "terminal.integrated.env.mac": { - "GIT_EDITOR": "code --wait" } } } diff --git a/template/.devcontainer/devcontainer.json.jinja b/template/.devcontainer/devcontainer.json.jinja index db9afd5e..6c7f5439 100644 --- a/template/.devcontainer/devcontainer.json.jinja +++ b/template/.devcontainer/devcontainer.json.jinja @@ -29,28 +29,25 @@ "extensions": [ "astral-sh.ty", "charliermarsh.ruff", - "GitHub.copilot-chat", {%- if ci == 'github' %} "GitHub.vscode-github-actions", "GitHub.vscode-pull-request-github", {%- elif ci == 'gitlab' %} "GitLab.gitlab-workflow", {%- endif %} - "ms-azuretools.vscode-docker", + "ms-azuretools.vscode-containers", "ms-python.python", "ms-toolsai.jupyter", "tamasfe.even-better-toml" ], "settings": { - "chat.extensionUnification.enabled": true, - "editor.bracketPairColorization.enabled": true, - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "source.organizeImports": "explicit" - }, - "editor.formatOnSave": true, "[python]": { - "editor.defaultFormatter": "charliermarsh.ruff" + "editor.codeActionsOnSave": { + "source.fixAll.ruff": "explicit", + "source.organizeImports.ruff": "explicit" + }, + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true }, "[toml]": { "editor.formatOnSave": false @@ -58,8 +55,6 @@ "editor.rulers": [ 100 ], - "files.autoSave": "onFocusChange", - "github.copilot.chat.codesearch.enabled": true, "jupyter.kernels.excludePythonEnvironments": [ "/usr/local/bin/python" ], @@ -68,15 +63,11 @@ "notebook.source.organizeImports": "explicit" }, "notebook.formatOnSave.enabled": true, + "python-envs.terminal.autoActivationType": "off", "python.defaultInterpreterPath": "/opt/venv/bin/python", - "python.languageServer": "None", - "python.terminal.activateEnvironment": false, "python.testing.pytestEnabled": true, "terminal.integrated.env.linux": { "GIT_EDITOR": "code --wait" - }, - "terminal.integrated.env.mac": { - "GIT_EDITOR": "code --wait" } } }