1.0.1 • Published 4 years ago

fcs-web-ide v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

初始化

初始化项目依赖包

yarn

初始化插件依赖包

cd extension-vscode-web-playground
yarn

初始化 vscode 源码

# 首先需要在当前目录 clone vscode 源码的指定版本,
# 然后通过 patch 应用已有更改。
git clone https://github.com/microsoft/vscode.git -b 1.56.2 --depth=1
cd vscode
git am ../patchs/0001-fcs-web-ide.patch

# 如果需要修改源码,请在打完原有 patch 的基础上,
# 提交 commit 再打成 patch 保存在 patchs 目录下。
# 使用如下命令打 patch:
git format-patch -1 [commitId]

构建

构建 vscode 源码

环境准备:https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites

初次构建时间会比较长。

node build-vscode.js

构建插件

node generate-dist.js

预览

node http.js

发布

npm publish

# 登录命令
npm login --registry=https://registry.npmjs.org/