forked from eclipse-score/devcontainer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevcontainer.json
More file actions
130 lines (130 loc) · 6.31 KB
/
Copy pathdevcontainer.json
File metadata and controls
130 lines (130 loc) · 6.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"build": {
// Installs latest version from the Distribution
"dockerfile": "./Dockerfile",
"context": "."
},
"features": {
"ghcr.io/devcontainers/features/git": {
"version": "2.49.0",
"ppa": "true"
},
"ghcr.io/devcontainers/features/git-lfs": {
// Installs the latest version from the Distribution
"autoPull": "false" // do not automatically pull LFS files when creating the container
},
"ghcr.io/devcontainers/features/common-utils": {
// Installs latest version from the Distribution
"installZsh": "false",
"username": "vscode",
"userUid": "1000",
"userGid": "1000",
"upgradePackages": "false" // WARNING: do *not* enable; this would include packages also from other features, which may have been pinned to a specific version
},
"ghcr.io/devcontainers-community/features/llvm": {
// Full semantic version pinning does not work with this feature.
// In case we want this, the feature needs to be replaced with a custom installation script.
"version": "20"
},
"ghcr.io/devcontainers/features/python": {
"version": "3.12.11"
},
"./s-core-local": {
"BAZEL_VERSION": "7.5.0",
"BUILDIFIER_VERSION": "8.2.1",
// The following sha256sum is for the binary buildifier-linux-amd64
// from the GitHub release page of buildtools
// It is generated by running 'sha256sum buildifier-linux-amd64'
"BUILDIFIER_SHA256": "6ceb7b0ab7cf66fceccc56a027d21d9cc557a7f34af37d2101edb56b92fcfa1a",
"BAZEL_COMPILE_COMMANDS_VERSION": "0.17.2",
// The following sha256sums are for the deb package bazel-compile-commands_<version>-<codename>_amd64.deb
// where <codename> is the Ubuntu codename (e.g., jammy, focal, noble)
// and <version> is the version of bazel-compile-commands
// The format is: <codename>:<sha256sum>;<codename>:<sha256sum>;...
// For example: jammy:6cde78e1a58c8f9047446cce25a81a676b0f293194175c9fe61586224c0b6f84;noble:97239b316df58fd3370a8aa6350790ececd5e4a1de30efb42d45cb1c300a179a;...
// It is generated by running 'sha256sum bazel-compile-commands_<version>-<codename>_amd64.deb'
"BAZEL_COMPILE_COMMANDS_SHA256": "jammy:6cde78e1a58c8f9047446cce25a81a676b0f293194175c9fe61586224c0b6f84;noble:97239b316df58fd3370a8aa6350790ececd5e4a1de30efb42d45cb1c300a179a;focal:c861f4f36cc2884eefbd488f19c49a9674ac093210a503bce032eac8b94b3660",
// required by the rust-analyzer VS Code extension
"RUST_ANALYZER_VERSION": "2025-06-30",
// The following sha256sum is for the binary rust-analyzer-x86_64-unknown-linux-gnu.gz
// It is generated by running 'sha256sum rust-analyzer-x86_64-unknown-linux-gnu.gz'
"RUST_ANALYZER_SHA256": "9f40579d05a54ff084e449c3721a3bc8c907aab676e745c78de31c62e74ea778"
}
},
"remoteUser": "vscode",
"initializeCommand": "mkdir -p ${localEnv:HOME}/.cache/bazel",
"customizations": {
"vscode": {
"extensions": [
"mads-hartmann.bash-ide-vscode",
"bazelbuild.vscode-bazel",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"ms-vscode.live-server", // for live preview of HTML files
"llvm-vs-code-extensions.vscode-clangd",
"jebbs.plantuml", //to preview PlantUML diagrams
"hediet.vscode-drawio", //for drawio integration
"swyddfa.esbonio", // for Sphinx documentation support
"rust-lang.rust-analyzer" // Rust language support for Visual Studio Code; see also tasks below
],
"settings": {
"files.insertFinalNewline": true,
"editor.formatOnSave": false,
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
},
"clangd.path": "/usr/bin/clangd",
"clangd.arguments": [
"--compile-commands-dir=${workspaceFolder}/",
"--pretty",
"--background-index"
],
"C_Cpp.intelliSenseEngine": "disabled",
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Run bazel-compile-commands",
"command": "bazel-compile-commands",
"type": "shell",
"isBackground": true,
"hide": true
},
{
"label": "Update compile_commands.json",
"command": "${command:clangd.restart}",
"isBackground": true,
"dependsOn": [
"Run bazel-compile-commands"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{ // see https://bazelbuild.github.io/rules_rust/rust_analyzer.html#vscode
"label": "Generate rust-project.json",
"command": "bazel",
"args": [
"run",
"@rules_rust//tools/rust_analyzer:gen_rust_project"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": "build",
"problemMatcher": [],
"presentation": {
"reveal": "never",
"panel": "dedicated"
},
"runOptions": {
"runOn": "folderOpen"
}
}
]
}
}
}
}
}