为什么 CodeLens 总是显示“0 个作者,0 个更改"? [英] Why does CodeLens always show "0 authors, 0 changes"?

查看:51
本文介绍了为什么 CodeLens 总是显示“0 个作者,0 个更改"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Git 存储库中有一个 Visual Studio 项目/解决方案.Visual Studio 的源代码控制功能很好用(第二个屏幕截图).感谢微软 Git 提供者"

然而,

解决方案

Visual Studio 2015 Update 2 修复了我的问题.

https://www.visualstudio.com/en-我们/新闻/vs2015-update2-vs.aspx

I have a Visual Studio project/solution in a Git repo. Visual Studio's source control feature works a treat (second screenshot). Thanks "Microsoft Git Provider"

HOWEVER CodeLens shows "0 authors, 0 changes" for every class and method (first screenshot) with tooltip explanations:

no data available for this type
no data available for this method

Any ideas why it could be broken?

More detail: the git repo doesn't have remotes. Visual Studio isn't connected to any Team Foundation server. I'm using the exact version of Git that shipped with Visual Studio 2015 update 1.

>git --version
git version 2.6.2.windows.1

解决方案

Visual Studio 2015 Update 2 fixed my problem.

https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

这篇关于为什么 CodeLens 总是显示“0 个作者,0 个更改"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆