Skip to content

Add dev container configuration - #52

Merged
hzhangxyz merged 3 commits into
mainfrom
copilot/configure-dev-container
Nov 28, 2025
Merged

Add dev container configuration#52
hzhangxyz merged 3 commits into
mainfrom
copilot/configure-dev-container

Conversation

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Adds dev container configuration matching the CI environment from GitHub Actions workflows.

devcontainer.json

  • Base: mcr.microsoft.com/devcontainers/base:ubuntu
  • Features: CMake (latest), Python (latest), Node.js (latest)
  • VS Code extensions: cpptools-extension-pack, cmake-tools, clang-format, python, pylance, pyright, ruff, biome

post-create.sh

  • APT: libgtest-dev, clang-format

  • Python: uv package manager, syncs dev dependencies, adds PATH to bashrc

  • Node.js: npm ci

  • Emscripten: installs to ~/emsdk with shell integration, pulls updates if already exists

  • Pre-commit hooks installation

  • Fixes 写一个dev container的配置 #51

Original prompt

This section details on the original issue you should resolve

<issue_title>写一个dev container的配置</issue_title>
<issue_description></issue_description>

<agent_instructions>参考github action的内容, 你会知道怎么配置相关的环境.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ripten support

Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Copilot AI changed the title [WIP] Add configuration for dev container Add dev container configuration Nov 28, 2025
Copilot AI requested a review from hzhangxyz November 28, 2025 10:39

@hzhangxyz hzhangxyz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. feature中的python和node都用最新版本的
  2. clang-format.vscode-clang-format , ms-vscode.cpptools-extension-pack , ms-pyright.pyright , 加上
  3. esbenp.prettier-vscode 去掉
  4. export PATH="$HOME/.local/bin:$PATH" 这个要丢到 bashrc里
  5. EMSDK_DIR 如果存在需要pull

… and emsdk pull

Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author
  1. feature中的python和node都用最新版本的
  2. clang-format.vscode-clang-format , ms-vscode.cpptools-extension-pack , ms-pyright.pyright , 加上
  3. esbenp.prettier-vscode 去掉...

Addressed all feedback in af51fdc:

  1. Changed Python and Node versions to "latest"
  2. Added clang-format.vscode-clang-format, ms-vscode.cpptools-extension-pack, ms-pyright.pyright
  3. Removed esbenp.prettier-vscode
  4. Added PATH export to bashrc
  5. EMSDK_DIR now does git pull if it already exists

@hzhangxyz
hzhangxyz marked this pull request as ready for review November 28, 2025 11:22
@hzhangxyz
hzhangxyz merged commit fdf1fda into main Nov 28, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

写一个dev container的配置

2 participants