CodeLens 只显示引用?

CodeLens only showing references?

我安装了 Visual Studio 2015 Enterprise RTM,但只能从 Code Lens 看到 "references"。我们正在使用 TFS 进行源代码控制。我希望看到来自 TFS 的相关提交。 Based on this article,我在选项中启用了所有选项:

这是我在 VS 中看到的:

我的 VS 设置有什么问题吗?

作为 CodeLens 的一部分的 TFVC 镜头仅在连接到作为 运行 生成历史数据的后台作业的 Team Foundation Server 版本时才起作用。这意味着您至少需要 运行 TFS 2013 或 2015 才能使用此功能。某些功能需要 specific version of Visual Studio.

您的 server admin has disabled indexing on the server 也有可能,可以在应用层使用 tfsconfig codeindex 命令来做到这一点。