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

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

圖片.png

之前一直用的好好的,復(fù)制出來的鏈接也能用(之前用的是Github),可是今天在用這個(gè)功能的時(shí)候開始“報(bào)錯(cuò)”:no auto-detected or configured remote providers found

圖片.png

去人家的官網(wǎng)看了看,人家是這么說的:

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.

大概就是,人家內(nèi)部支持了這些git倉(cāng)庫(kù),但是別的倉(cāng)庫(kù)你也可以自己配置。

下面的就是我配置的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}"
            }
        }]
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Getting Started Use the Current Stable Version (7.1) Buil...
    Leonzai閱讀 2,066評(píng)論 0 3
  • General New Features Xcode 11 beta supports development w...
    Zszen閱讀 3,593評(píng)論 0 50
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,578評(píng)論 19 139
  • ---title: VS Code的使用---## 前言VS Code 軟件實(shí)在是太酷、太好用了,越來越多的新生代...
    李羊羊閱讀 402評(píng)論 0 5
  • afinalAfinal是一個(gè)android的ioc,orm框架 https://github.com/yangf...
    passiontim閱讀 15,877評(píng)論 2 45

友情鏈接更多精彩內(nèi)容