Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
docs(vscode): 解决gitlens更新版本后无法使用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zjykzj committed Nov 17, 2020
1 parent 8cc17b7 commit 6a9b82a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/vscode/extensions/gitlens-无法打开.md
@@ -0,0 +1,27 @@

# [GitLens]无法打开

今天突然无法使用`GitLens`在侧边栏的按钮了,当前版本如下:

```
VSCode: v1.51.1
GitLens: v11
```

在网上找到一个参考:[GitLens extension disappeared](https://stackoverflow.com/questions/52575341/gitlens-extension-disappeared/52575990)。估计是因为`GitLens`更新后改变了使用方式

通过查找[eamodio/vscode-gitlens](https://github.com/eamodio/vscode-gitlens/releases)的发布,发现从`v11.0.0`开始`GitLens`侧边栏按钮和`VSCode`源代码管理按钮整合在一起了

![](./imgs/vscode-gitlens.png)

## 解决

1. 卸载`GitLens`,然后进入`.vscode/extensions/`,删除`GitLens`缓存

```
rm -rf eamodio.gitlens-11.0.1
```

2. 重新安装`GitLens`,然后点击侧边栏的源代码管理按钮即可进行`GitLens`操作

**Tip:打开源代码管理界面后,点击右上角的`Toggle View Mode`按钮即可切换视图模式,回到熟悉的`GitLens`展示**
Binary file added docs/vscode/extensions/imgs/vscode-gitlens.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Expand Up @@ -49,6 +49,7 @@ nav:
- 插件:
- 'Git设置': './vscode/extensions/git设置.md'
- '[SSH]远程服务配置': './vscode/extensions/[SSH]远程服务配置.md'
- '[GitLens]无法打开': './vscode/extensions/gitlens-无法打开.md'
- 自定义:
- 显示隐藏文件: vscode/custom/显示隐藏文件.md
- Jupyter:
Expand Down

0 comments on commit 6a9b82a

Please sign in to comment.