为什么CodeLens总是显示"0个作者,0个更改"? [英] Why does CodeLens always show "0 authors, 0 changes"?
问题描述
我在Git存储库中有一个Visual Studio项目/解决方案. Visual Studio的源代码控制功能可以解决问题(第二个屏幕截图).谢谢"Microsoft Git Provider"
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"
但是 CodeLens 对于每个显示"0个作者,0个更改"类和方法(第一个屏幕截图),并带有工具提示说明:
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?
更多详细信息:git repo没有遥控器. Visual Studio未连接到任何Team Foundation服务器.我使用的是Visual Studio 2015 Update 1随附的Git的确切版本.
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解决了我的问题.
Visual Studio 2015 Update 2 fixed my problem.
https://www.visualstudio.com/zh-我们/news/vs2015-update2-vs.aspx
这篇关于为什么CodeLens总是显示"0个作者,0个更改"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!