为什么 CodeLens 总是显示“0 个作者,0 个更改"? [英] Why does CodeLens always show "0 authors, 0 changes"?
问题描述
我在 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屋!