[Python-checkins] Specify more settings for the C extension of VS Code for dev containers (GH-103229)

brettcannon webhook-mailer at python.org
Mon Apr 3 19:47:55 EDT 2023


https://github.com/python/cpython/commit/c71756fa651e51041ac8b55776320e3297ba081d
commit: c71756fa651e51041ac8b55776320e3297ba081d
branch: main
author: Brett Cannon <brett at python.org>
committer: brettcannon <brett at python.org>
date: 2023-04-03T16:47:48-07:00
summary:

Specify more settings for the C extension of VS Code for dev containers (GH-103229)

Should help with auto-complete.

files:
M .devcontainer/devcontainer.json

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index e3fb4c6c88f4..9fbaf7fddd85 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -37,10 +37,16 @@
                 // "ms-python.python"
             ],
             "settings": {
+                "C_Cpp.default.compilerPath": "/usr/bin/clang",
                 "C_Cpp.default.cStandard": "c11",
                 "C_Cpp.default.defines": [
+                    "CONFIG_64",
                     "Py_BUILD_CORE"
                 ],
+                "C_Cpp.default.includePath": [
+                    "${workspaceFolder}/*",
+                    "${workspaceFolder}/Include/**"
+                ],
                 // https://github.com/microsoft/vscode-cpptools/issues/10732
                 "C_Cpp.errorSquiggles": "disabled",
                 "editor.insertSpaces": true,



More information about the Python-checkins mailing list