2023-03-29 17:28:08 -03:00
|
|
|
{
|
|
|
|
"build": {
|
|
|
|
"dockerfile": "Dockerfile"
|
|
|
|
},
|
|
|
|
"onCreateCommand": [
|
|
|
|
// Install common tooling.
|
|
|
|
"dnf",
|
|
|
|
"install",
|
|
|
|
"-y",
|
|
|
|
"which",
|
|
|
|
"zsh",
|
2023-05-25 17:03:55 -03:00
|
|
|
"fish",
|
|
|
|
// For umask fix below.
|
|
|
|
"/usr/bin/setfacl"
|
2023-03-29 17:28:08 -03:00
|
|
|
],
|
|
|
|
"updateContentCommand": {
|
|
|
|
// Using the shell for `nproc` usage.
|
|
|
|
"python": "./configure --config-cache --with-pydebug && make -s -j `nproc`",
|
|
|
|
"docs": [
|
|
|
|
"make",
|
|
|
|
"--directory",
|
|
|
|
"Doc",
|
|
|
|
"venv",
|
|
|
|
"html"
|
|
|
|
]
|
|
|
|
},
|
2023-05-25 17:03:55 -03:00
|
|
|
"postCreateCommand": {
|
|
|
|
// https://github.com/orgs/community/discussions/26026
|
|
|
|
"umask fix: workspace": ["sudo", "setfacl", "-bnR", "."],
|
|
|
|
"umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"]
|
|
|
|
},
|
2023-03-29 17:28:08 -03:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
// Highlighting for Parser/Python.asdl.
|
|
|
|
"brettcannon.zephyr-asdl",
|
|
|
|
// Highlighting for configure.ac.
|
|
|
|
"maelvalais.autoconf",
|
|
|
|
// C auto-complete.
|
|
|
|
"ms-vscode.cpptools",
|
2023-05-25 17:03:55 -03:00
|
|
|
// To view HTML build of docs.
|
|
|
|
"ms-vscode.live-server",
|
|
|
|
// Python auto-complete.
|
|
|
|
"ms-python.python"
|
2023-03-29 17:28:08 -03:00
|
|
|
],
|
|
|
|
"settings": {
|
2023-04-03 20:47:48 -03:00
|
|
|
"C_Cpp.default.compilerPath": "/usr/bin/clang",
|
2023-03-29 17:28:08 -03:00
|
|
|
"C_Cpp.default.cStandard": "c11",
|
|
|
|
"C_Cpp.default.defines": [
|
2023-04-03 20:47:48 -03:00
|
|
|
"CONFIG_64",
|
2023-03-29 17:28:08 -03:00
|
|
|
"Py_BUILD_CORE"
|
|
|
|
],
|
2023-04-03 20:47:48 -03:00
|
|
|
"C_Cpp.default.includePath": [
|
|
|
|
"${workspaceFolder}/*",
|
|
|
|
"${workspaceFolder}/Include/**"
|
|
|
|
],
|
2023-03-29 17:28:08 -03:00
|
|
|
// https://github.com/microsoft/vscode-cpptools/issues/10732
|
|
|
|
"C_Cpp.errorSquiggles": "disabled",
|
|
|
|
"editor.insertSpaces": true,
|
|
|
|
"editor.rulers": [
|
|
|
|
80
|
|
|
|
],
|
|
|
|
"editor.tabSize": 4,
|
|
|
|
"editor.trimAutoWhitespace": true,
|
|
|
|
"files.associations": {
|
|
|
|
"*.h": "c"
|
|
|
|
},
|
|
|
|
"files.encoding": "utf8",
|
|
|
|
"files.eol": "\n",
|
|
|
|
"files.insertFinalNewline": true,
|
|
|
|
"files.trimTrailingWhitespace": true,
|
|
|
|
"python.analysis.diagnosticSeverityOverrides": {
|
|
|
|
// Complains about shadowing the stdlib w/ the stdlib.
|
|
|
|
"reportShadowedImports": "none",
|
|
|
|
// Doesn't like _frozen_importlib.
|
|
|
|
"reportMissingImports": "none"
|
|
|
|
},
|
|
|
|
"python.analysis.extraPaths": [
|
|
|
|
"Lib"
|
|
|
|
],
|
|
|
|
"python.defaultInterpreterPath": "./python",
|
|
|
|
"[restructuredtext]": {
|
|
|
|
"editor.tabSize": 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|