初始化
===

初始化项目依赖包
---

```bash
yarn
```

初始化插件依赖包
---

```bash
cd extension-vscode-web-playground
yarn
```

初始化 vscode 源码
---

```bash
# 首先需要在当前目录 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

初次构建时间会比较长。

```bash
node build-vscode.js
```

构建插件
---

```bash
node generate-dist.js
```

预览
===

```bash
node http.js
```

发布
===

```bash
npm publish

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