CodeLens 只显示引用? [英] CodeLens only showing references?

查看:30
本文介绍了CodeLens 只显示引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Visual Studio 2015 Enterprise RTM 并且只看到来自 Code Lens 的参考".我们正在使用 TFS 进行源代码控制.我希望看到来自 TFS 的相关提交.

这是我在 VS 中看到的:

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

解决方案

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

也可能是您的服务器管理员禁用了索引服务器,可以在应用层使用 tfsconfig codeindex 命令来做到这一点.

I installed Visual Studio 2015 Enterprise RTM and only seeing "references" from Code Lens. We are using TFS for source control. I expect to see related commits from TFS. Based on this article, I have everything enabled in options:

Here is what I see in VS:

Is there anything wrong with my VS setup?

解决方案

The TFVC lenses that are part of CodeLens only work when connected to a version of Team Foundation Server that is running the background job that generates the historical data. This means that you need to be running at least TFS 2013 or 2015 in order for this feature to work. Some features require a specific version of Visual Studio.

It is also possible that your server admin has disabled indexing on the server, one can do that using the tfsconfig codeindex command on the application tier.

这篇关于CodeLens 只显示引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆