]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Specify more settings for the C extension of VS Code for dev containers (GH-103229)
authorBrett Cannon <brett@python.org>
Mon, 3 Apr 2023 23:47:48 +0000 (16:47 -0700)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2023 23:47:48 +0000 (16:47 -0700)
Should help with auto-complete.

.devcontainer/devcontainer.json

index e3fb4c6c88f497d1c380b26190d48928f4b9f5de..9fbaf7fddd8514419d4ea165a8760424deb57837 100644 (file)
                 // "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,