目录

「GitLens」走上背德之路

GitLens 使用、破解指南。

安装

安装完 Visual Studio Code 后,在其扩展页面安装 GitLens

使用

Commits View

如何在 Commits View 视图中显示 submodule 仓库?

从该 Issue 可知,截至当前版本(v16.3.3),GitlensCommits View 中只会显示已经有文件打开的 submodule 仓,且仅能在当前窗口中保持显示,重启窗口后会消失。

破解

GitLens v16.3.3 PASSED!

对于 WSL2 + DockerVisual Studio Code 用户,首先注册并登录 GitLens,然后破解步骤如下:

git clone https://github.com/chengazhen/gitlens-pro.git
cd gitlens-pro/bin
./activate

# 1) 选择 5(自定义路径)
# 2) 输入扩展路径,如:/root/.vscode-server/extensions
# 3) 按照上述仓库的介绍页提示进行刷新
# 4) 重启 VS Code

感谢 chengazhen 的开发!