Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
820 views
in Technique[技术] by (71.8m points)

visual studio - Why does CodeLens always show "0 authors, 0 changes"?

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

enter image description here enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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. enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...