visual-studio - 为什么 CodeLens 总是显示 "0 authors, 0 changes"?

标签 visual-studio visual-studio-2015 codelens

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

然而CodeLens为每个类和方法(第一个屏幕截图)显示“0 个作者,0 个更改”,并带有工具提示说明:

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



任何想法为什么它会被打破?

更多细节:git repo 没有 Remote 。 Visual Studio 未连接到任何 Team Foundation 服务器。我正在使用 Visual Studio 2015 更新 1 附带的确切版本的 Git。
>git --version
git version 2.6.2.windows.1

enter image description here
enter image description here

最佳答案

我在 VS 2017 中遇到了同样的问题。修复方法是更改​​“月份的更改”字段。如果您左键单击“0 个作者,0 个更改”链接,将出现一个弹出窗口。它在右下角有一个您可以调整的字段。我把它从 12 个月改为 48 个月。更改会自动应用于整个解决方案。
enter image description here

关于visual-studio - 为什么 CodeLens 总是显示 "0 authors, 0 changes"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34814365/

相关文章:

angular - 我可以开始使用没有节点的angular 2吗?

visual-studio - 在 TFS 中移动文件后 CodeLens 错误/不完整

visual-studio - 如何关闭 CodeLens 引用

visual-studio - 我在哪里可以下载 Visual Studio 2013 的 SDK?

visual-studio - Visual Studio 2015 Intellisense无法正常工作

boost - 在 Windows 上获取 CMake 以查找 vc120 Boost 库

azure-devops - VS 2013 CodeLens

.net - 从ASP.NET MVC 4更新到MVC 5的 View 中没有Intellisense

visual-studio - 绿色 _ 中的 Visual Studio 下划线(不是绿色波浪线)

asp.net - 在 Visual Studio 中重新生成代码生成文件