2022-11-12 21:30:10 +00:00
|
|
|
{
|
2024-07-11 14:47:16 +00:00
|
|
|
"name": "Ladybird",
|
2024-10-11 18:03:41 +00:00
|
|
|
"image": "mcr.microsoft.com/devcontainers/base:noble",
|
2022-11-12 21:30:10 +00:00
|
|
|
// Features to add to the dev container. More info: https://containers.dev/implementors/features.
|
|
|
|
"features": {
|
|
|
|
"ghcr.io/devcontainers/features/github-cli:1": {},
|
2024-10-11 18:03:41 +00:00
|
|
|
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
|
2024-05-30 21:06:21 +00:00
|
|
|
"./features/ladybird": {
|
2024-10-13 03:59:23 +00:00
|
|
|
"llvm_version": 18
|
|
|
|
},
|
|
|
|
"./features/vcpkg-cache": {
|
|
|
|
"release_triplet": true,
|
|
|
|
// FIXME: Figure out how to have the CI prebuilt version set both of these true
|
|
|
|
"debug_triplet": false,
|
|
|
|
"sanitizer_triplet": false
|
2022-11-12 21:30:10 +00:00
|
|
|
},
|
|
|
|
"ghcr.io/devcontainers/features/desktop-lite": {
|
|
|
|
"password": "vscode",
|
|
|
|
"webPort": "6080",
|
|
|
|
"vncPort": "5901"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2024-10-12 01:22:55 +00:00
|
|
|
"forwardPorts": [
|
|
|
|
6080,
|
|
|
|
5901
|
|
|
|
],
|
2022-11-12 21:30:10 +00:00
|
|
|
"portsAttributes": {
|
|
|
|
"5901": {
|
|
|
|
"label": "VNC"
|
|
|
|
},
|
|
|
|
"6080": {
|
|
|
|
"label": "Web VNC"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2024-10-12 01:22:55 +00:00
|
|
|
"postCreateCommand": "pre-commit install; pre-commit install --hook-type commit-msg",
|
2022-11-12 21:30:10 +00:00
|
|
|
// Configure tool-specific properties.
|
2024-10-12 01:22:55 +00:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
"ms-vscode.cmake-tools",
|
|
|
|
"llvm-vs-code-extensions.vscode-clangd",
|
|
|
|
"eamodio.gitlens"
|
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
// Excluding the generated directories keeps your file view clean and speeds up search.
|
|
|
|
"files.exclude": {
|
|
|
|
"**/.git": true,
|
|
|
|
"Toolchain/Local/**": true,
|
|
|
|
"Toolchain/Tarballs/**": true,
|
|
|
|
"Toolchain/Build/**": true,
|
2024-10-13 03:59:23 +00:00
|
|
|
"Build/**": true
|
2024-10-12 01:22:55 +00:00
|
|
|
},
|
|
|
|
"search.exclude": {
|
|
|
|
"**/.git": true,
|
|
|
|
"Toolchain/Local/**": true,
|
|
|
|
"Toolchain/Tarballs/**": true,
|
|
|
|
"Toolchain/Build/**": true,
|
2024-10-13 03:59:23 +00:00
|
|
|
"Build/**": true
|
2024-10-12 01:22:55 +00:00
|
|
|
},
|
|
|
|
// Tab settings
|
|
|
|
"editor.tabSize": 4,
|
|
|
|
"editor.useTabStops": false,
|
|
|
|
// format trailing new lines
|
|
|
|
"files.trimFinalNewlines": true,
|
|
|
|
"files.insertFinalNewline": true,
|
|
|
|
// git commit message length
|
|
|
|
"git.inputValidationLength": 72,
|
|
|
|
"git.inputValidationSubjectLength": 72,
|
|
|
|
// If clangd was obtained from a package manager, its path can be set here.
|
|
|
|
// Note: This has to be adjusted manually, to the "llvm_version" from above
|
|
|
|
"clangd.path": "clangd-18",
|
|
|
|
"clangd.arguments": [
|
|
|
|
"--header-insertion=never" // See https://github.com/clangd/clangd/issues/1247
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-12 21:30:10 +00:00
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
|
|
// "remoteUser": "root",
|
|
|
|
}
|