在Gitlens中添加Gitee配置 解决no auto-detected or configured remote providers found

Gitlens是vscode中的一个插件,它提供了很多有用的功能,例如copy remote file url

图片.png

之前一直用的好好的,复制出来的链接也能用(之前用的是Github),可是今天在用这个功能的时候开始“报错”:no auto-detected or configured remote providers found

图片.png

去人家的官网看了看,人家是这么说的:

GitLens provides rich integrations with many remote providers, including GitHub, GitHub Enterprise, GitLab, Bitbucket, Bitbucket Server, Azure DevOps. You can also define custom remote providers or remote providers with custom domains as well.

大概就是,人家内部支持了这些git仓库,但是别的仓库你也可以自己配置。

下面的就是我配置的gitee

    "gitlens.remotes": [{
        "domain": "gitee.com",
        "type": "Custom",
        "name": "My Company",
        "protocol": "https",
        "urls": {
            "repository": "https://gitee.com/${repo}",
            "branches": "https://gitee.com/${repo}/branches",
            "branch": "https://gitee.com/${repo}/commits/${branch}",
            "commit": "https://gitee.com/${repo}/commit/${id}",
            "file": "https://gitee.com/${repo}?path=${file}${line}",
            "fileInBranch": "https://gitee.com/${repo}/blob/${branch}/${file}${line}",
            "fileInCommit": "https://gitee.com/${repo}/blob/${id}/${file}${line}",
            "fileLine": "#L${line}",
            "fileRange": "#L${start}-L${end}"
            }
        }]
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Getting Started Use the Current Stable Version (7.1) Buil...
    Leonzai阅读 1,972评论 0 3
  • General New Features Xcode 11 beta supports development w...
    Zszen阅读 3,513评论 0 50
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,896评论 18 139
  • ---title: VS Code的使用---## 前言VS Code 软件实在是太酷、太好用了,越来越多的新生代...
    李羊羊阅读 221评论 0 5
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,512评论 2 45