|
| 1 | +{ |
| 2 | + "image": "ghcr.io/python/wasicontainer:latest", |
| 3 | + "onCreateCommand": [ |
| 4 | + // Install common tooling. |
| 5 | + "dnf", |
| 6 | + "install", |
| 7 | + "-y", |
| 8 | + // For umask fix below. |
| 9 | + "/usr/bin/setfacl" |
| 10 | + ], |
| 11 | + "updateContentCommand": { |
| 12 | + // Using the shell for `nproc` usage. |
| 13 | + "python": "python3 Tools/wasm/wasi build --quiet -- --with-pydebug -C" |
| 14 | + }, |
| 15 | + "postCreateCommand": { |
| 16 | + // https://github.com/orgs/community/discussions/26026 |
| 17 | + "umask fix: workspace": ["sudo", "setfacl", "-bnR", "."], |
| 18 | + "umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"] |
| 19 | + }, |
| 20 | + "customizations": { |
| 21 | + "vscode": { |
| 22 | + "extensions": [ |
| 23 | + // Highlighting for Parser/Python.asdl. |
| 24 | + "brettcannon.zephyr-asdl", |
| 25 | + // Highlighting for configure.ac. |
| 26 | + "maelvalais.autoconf", |
| 27 | + // C auto-complete. |
| 28 | + "ms-vscode.cpptools", |
| 29 | + // Python auto-complete. |
| 30 | + "ms-python.python" |
| 31 | + ], |
| 32 | + "settings": { |
| 33 | + "C_Cpp.default.compilerPath": "/usr/bin/clang", |
| 34 | + "C_Cpp.default.cStandard": "c11", |
| 35 | + "C_Cpp.default.defines": [ |
| 36 | + "CONFIG_64", |
| 37 | + "Py_BUILD_CORE" |
| 38 | + ], |
| 39 | + "C_Cpp.default.includePath": [ |
| 40 | + "${workspaceFolder}/*", |
| 41 | + "${workspaceFolder}/Include/**" |
| 42 | + ], |
| 43 | + // https://github.com/microsoft/vscode-cpptools/issues/10732 |
| 44 | + "C_Cpp.errorSquiggles": "disabled", |
| 45 | + "editor.insertSpaces": true, |
| 46 | + "editor.rulers": [ |
| 47 | + 80 |
| 48 | + ], |
| 49 | + "editor.tabSize": 4, |
| 50 | + "editor.trimAutoWhitespace": true, |
| 51 | + "files.associations": { |
| 52 | + "*.h": "c" |
| 53 | + }, |
| 54 | + "files.encoding": "utf8", |
| 55 | + "files.eol": "\n", |
| 56 | + "files.insertFinalNewline": true, |
| 57 | + "files.trimTrailingWhitespace": true, |
| 58 | + "python.analysis.diagnosticSeverityOverrides": { |
| 59 | + // Complains about shadowing the stdlib w/ the stdlib. |
| 60 | + "reportShadowedImports": "none", |
| 61 | + // Doesn't like _frozen_importlib. |
| 62 | + "reportMissingImports": "none" |
| 63 | + }, |
| 64 | + "python.analysis.extraPaths": [ |
| 65 | + "Lib" |
| 66 | + ], |
| 67 | + "[restructuredtext]": { |
| 68 | + "editor.tabSize": 3 |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | +} |
0 commit comments