目前开发插件还是麻烦,但是如果有 vscode 的 AI 开发能力就好办了。
接着准备开发 dpanel 插件的机会,来试试如何用 AI 远程开发 istoreos 的插件。
先试试下面的脚本,把相关的依赖安装一下:
参考相关的 Issue: https://github.com/microsoft/vscode-remote-release/issues/542
# Step1: Install dependencies
opkg update && opkg install bash tar file libstdcpp6 coreutils-sleep coreutils-printenv openssh-sftp-server getopt
# Step 2: Download the Installer script
wget https://raw.githubusercontent.com/b01/dl-vscode-server/main/download-vs-code.sh
# Step 3: Hardcode the platform variables:
root@router:~/vscode-installer# ./download-vs-code.sh "linux" "x64" --alpine
we need to hard set PLATFORM and ARCH for Alpine Musl
attempting to download and pre-install VS Code server version 'f1a4fb101478ce6ec82fe9627c43efbf9e98c813'
downloading https://update.code.visualstudio.com/commit:f1a4fb101478ce6ec82fe9627c43efbf9e98c813/server-linux-alpine/stable to vscode-server-linux-alpine.tar.gz done
setup directories:
done
extracting vscode-server-linux-alpine.tar.gz...done
setup symlinks...done
VS Code server pre-install completed
downloading extensions...
extensions installation complete
# Step 6: Connect VS Code. The first connection failed for me.
# Step 7: Connect once more. The second connection succeeded.
其实就是把一键安装脚本下载好之后,运行下面:
./download-vs-code.sh "linux" "x64" --alpine