diff --git a/src/s-core-devcontainer/.devcontainer/devcontainer.json b/src/s-core-devcontainer/.devcontainer/devcontainer.json index 2f04edb..17fb611 100644 --- a/src/s-core-devcontainer/.devcontainer/devcontainer.json +++ b/src/s-core-devcontainer/.devcontainer/devcontainer.json @@ -59,6 +59,7 @@ "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 diff --git a/src/s-core-devcontainer/.devcontainer/s-core-local/post_create_command.sh b/src/s-core-devcontainer/.devcontainer/s-core-local/post_create_command.sh index 0da43c3..0152adf 100755 --- a/src/s-core-devcontainer/.devcontainer/s-core-local/post_create_command.sh +++ b/src/s-core-devcontainer/.devcontainer/s-core-local/post_create_command.sh @@ -4,6 +4,9 @@ set -euo pipefail # Configure Bazel to use the cache directory that is mounted from the host echo "startup --output_user_root=/var/cache/bazel" >> ~/.bazelrc +# ensure that the Bazel cache directory has the correct permissions +sudo chown -R "$(id -un):$(id -gn)" /var/cache/bazel + # Configure clangd to remove the -fno-canonical-system-headers flag, which is # GCC-specific. If not done, there is an annoying error message on the first # line of every C++ file when being displayed in Visual Studio Code.