Why does CodeLens always show “0 authors, 0 changes”?

馋奶兔 提交于 2019-11-29 09:45:43

I had the same problem. Tried re-installing GIT, etc. Finally, I decided to uninstall and reinstall VS 2015 with update 1, and that corrected the issue.

Visual Studio 2015 Update 2 fixed my problem.

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

I think the issue is not having a remote repo.

In this case without a remote repo, it won't even show up authors or changes above methods, but will show in history.

For my projects that did have a remote repo and the remote repo has since been removed it is working as intended.

The docs say that the info is taken from the local repo, but there must be some initialisation that works on the premise that there is a remote repo.

Git – CodeLens gets its indicator information from your local repo, so it doesn’t matter where your remote is. It could be Team Foundation Server, Visual Studio Online, Github, Gitorius, you name it.

Having difficulty finding out exactly, it would seem that this is linked to the remote repo.

Also the majority of my projects are not connected to TFS.

I came across the same issue in VS 2017. The fix was to change "Changes in months" field. If you left click on "0 authors, 0 changes" link, a pop up will appear. It has a field in the bottom right corner which you could adjust. I changed it from 12 months to 48 months. The change was automatically applied to the whole solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!