From 48a63c7a0859bfe8ab3676d24fa6e447316906f1 Mon Sep 17 00:00:00 2001 From: Tsuki Date: Wed, 3 Dec 2025 23:35:04 +0800 Subject: [PATCH 1/3] Create devcontainer.json (#1) # Create and switch to a new branch for devcontainer feature git checkout -b feat/devcontainer-setup # Stage the new devcontainer files git add .devcontainer/ # Commit the changes git commit -m "feat(devcontainer): add .devcontainer folder and devcontainer.json for consistent development environment - Add devcontainer.json with Ubuntu base image - Include Node.js LTS for GitHub Copilot LSP support - Add Homebrew feature for package management - Configure VS Code extensions for Swift and development tools - Add post-create.sh script for environment setup - Mount SSH keys for Git authentication - Configure editor settings for consistent formatting This provides a consistent Linux development environment for: - Documentation work - Script development - Node.js component testing - General non-macOS specific tasks Note: Full Xcode development still requires macOS with Xcode installed." # Push the branch to remote git push -u origin feat/devcontainer-setup --- .devcontainer/devcontainer.json | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..3ebe8139 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,61 @@ +{ + "name": "CopilotForXcode Development", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": true, + "installOhMyZsh": true, + "upgradePackages": true, + "username": "vscode", + "userUid": "1000", + "userGid": "1000" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "latest" + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "lts", + "nodeGypDependencies": true + }, + "ghcr.io/devcontainers/features/homebrew:1": { + "version": "latest" + } + }, + + "postCreateCommand": "bash .devcontainer/post-create.sh", + + "customizations": { + "vscode": { + "extensions": [ + "sswg.swift-lang", + "GitHub.copilot", + "GitHub.copilot-chat", + "ms-vscode.makefile-tools", + "streetsidesoftware.code-spell-checker", + "eamodio.gitlens" + ], + "settings": { + "terminal.integrated.defaultProfile.linux": "zsh", + "editor.formatOnSave": true, + "editor.tabSize": 2, + "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true + } + } + }, + + "remoteUser": "vscode", + + "mounts": [ + "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,readonly,type=bind,consistency=cached" + ], + + "forwardPorts": [], + + "portsAttributes": {}, + + "postAttachCommand": "", + + "updateContentCommand": "git pull" +} From 7f9f4e858bfa3942d0e9fa7085df0265d857afbc Mon Sep 17 00:00:00 2001 From: Tsuki Date: Wed, 3 Dec 2025 23:48:56 +0800 Subject: [PATCH 2/3] Revert "Create devcontainer.json (#1)" (#2) This reverts commit 48a63c7a0859bfe8ab3676d24fa6e447316906f1. --- .devcontainer/devcontainer.json | 61 --------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 3ebe8139..00000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "CopilotForXcode Development", - "image": "mcr.microsoft.com/devcontainers/base:ubuntu", - - "features": { - "ghcr.io/devcontainers/features/common-utils:2": { - "installZsh": true, - "installOhMyZsh": true, - "upgradePackages": true, - "username": "vscode", - "userUid": "1000", - "userGid": "1000" - }, - "ghcr.io/devcontainers/features/git:1": { - "version": "latest" - }, - "ghcr.io/devcontainers/features/node:1": { - "version": "lts", - "nodeGypDependencies": true - }, - "ghcr.io/devcontainers/features/homebrew:1": { - "version": "latest" - } - }, - - "postCreateCommand": "bash .devcontainer/post-create.sh", - - "customizations": { - "vscode": { - "extensions": [ - "sswg.swift-lang", - "GitHub.copilot", - "GitHub.copilot-chat", - "ms-vscode.makefile-tools", - "streetsidesoftware.code-spell-checker", - "eamodio.gitlens" - ], - "settings": { - "terminal.integrated.defaultProfile.linux": "zsh", - "editor.formatOnSave": true, - "editor.tabSize": 2, - "files.insertFinalNewline": true, - "files.trimTrailingWhitespace": true - } - } - }, - - "remoteUser": "vscode", - - "mounts": [ - "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,readonly,type=bind,consistency=cached" - ], - - "forwardPorts": [], - - "portsAttributes": {}, - - "postAttachCommand": "", - - "updateContentCommand": "git pull" -} From 3ec6b3824f92f4107c8344947d75f62c8b692345 Mon Sep 17 00:00:00 2001 From: Tsuki Date: Sat, 6 Dec 2025 13:27:25 +0800 Subject: [PATCH 3/3] Create devcontainer.json (#3) --- .devcontainer/devcontainer.json | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..3ebe8139 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,61 @@ +{ + "name": "CopilotForXcode Development", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": true, + "installOhMyZsh": true, + "upgradePackages": true, + "username": "vscode", + "userUid": "1000", + "userGid": "1000" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "latest" + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "lts", + "nodeGypDependencies": true + }, + "ghcr.io/devcontainers/features/homebrew:1": { + "version": "latest" + } + }, + + "postCreateCommand": "bash .devcontainer/post-create.sh", + + "customizations": { + "vscode": { + "extensions": [ + "sswg.swift-lang", + "GitHub.copilot", + "GitHub.copilot-chat", + "ms-vscode.makefile-tools", + "streetsidesoftware.code-spell-checker", + "eamodio.gitlens" + ], + "settings": { + "terminal.integrated.defaultProfile.linux": "zsh", + "editor.formatOnSave": true, + "editor.tabSize": 2, + "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true + } + } + }, + + "remoteUser": "vscode", + + "mounts": [ + "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,readonly,type=bind,consistency=cached" + ], + + "forwardPorts": [], + + "portsAttributes": {}, + + "postAttachCommand": "", + + "updateContentCommand": "git pull" +}