将GitRepo名称打印为vs代码

在屏幕或vscode上打印用户当前正在使用的gitrepo的名称

https://www.npmjs.com/package/git-repo-info 尝试使用信息和许多其他但完整的路径而不是仓库名称打印出来

branch(`${folderPath}`)
        .then(name =>{
var info = getRepoInfo(`${folderPath}\.git`);
        vscode.window.showInformationmessage(info.branch)
        }) //=> 'master' 
        .catch(console.error);
});

我想显示的唯一回购名称

liuyun050229 回答:将GitRepo名称打印为vs代码

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3126475.html

大家都在问