CodeLens仅显示引用 [英] CodeLens only showing references

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

问题描述

Hello社区!

我在Windows 10(10568.589)企业系统上安装了Visual Studio 2017 Enterprise,并将其与Team Foundation Server 2017(本地)一起使用(版本15.112.26206.0)

i have installed Visual Studio 2017 Enterprise on a Windows 10 (10568.589) Enterprise System and use it with an Team Foundation Server 2017 (on-prem) (Version 15.112.26206.0)

对于我的项目CodeLens仅显示引用但不显示更多信息。

For my projects CodeLens only showing references but not further information.

当我将同一用户连接到同一用户时TFS但是使用Visual Studio 2015 Update 3,我获得了所有丰富的CodeLens信息。此外,如果我连接到VSTS Online并打开一个项目,即使使用Visual Studio
2017,我也可以获得丰富的CodeLens体验。

When i connect with the same user to the same TFS but with Visual Studio 2015 Update 3, i get all the rich CodeLens Information. Additionally if i connect to VSTS Online and open a Project, i also get the rich CodeLens experience even with Visual Studio 2017.

所以有什么提示可能是什么问题?

So any hint on what can be the problem?

Visual Studio 2017中的CodeLens with TFS on-prem

CodeLens in Visual Studio 2017 with TFS on-prem

VS2017内的错误

Error within VS2017

VS2017中的CodeLens选项

CodeLens options within VS2017

VS2015中同一TFS本地服务器上的CodeLens。

CodeLens in VS2015 on the same TFS on-prem server.

推荐答案

Hi Cyber​​space,

Hi Cyberspace,

感谢您在此发布。

Visual Studio 2017 Enterprise中的CodeLens(26228.10)  with TFS on-prem在我的机器上工作正常,我没有直接的解决方案他的问题,我想为你解决这个问题的一些问题:

The CodeLens in Visual Studio 2017 Enterprise (26228.10) with TFS on-prem is works fine on my machine, I have no direct solution for this issue, I would like give you some troubleshootings for this issue:

(1)请将你的Visual Studio 2017更新到最新版本。 Visual Studio 2017 RTM已于3月7日发布。有一个CodeLens错误i n早期版本的
Visual Studio 2017:

(1) Please update your Visual Studio 2017 to the latest version. The Visual Studio 2017 RTM has published at 7th March. There is a CodeLens error in early versions of Visual Studio 2017:

https://developercommunity.visualstudio.com/content/problem/7636/codelens-error-message-at-checking-out-a-file.html

https://developercommunity.visualstudio.com/content/problem/7636/codelens-error-message-at-checking-out-a-file.html

(2)检查服务器管理员是否已禁用服务器上的索引,您可以在应用程序层上使用
tfsconfig codeindex 命令。您可以参考
的答案
CodeLens仅显示参考资料
详细信息。

(2) Check whether your server admin has disabled indexing on the server or not, you can use the tfsconfig codeindex command on the application tier. You ca refer to the answer for CodeLens only showing references for detail.

(3)确保VS和TFS连接正确,尝试使用选项"获取最新版本"。和"签出编辑"在源代码管理浏览器中。

(3) Make sure the VS and TFS are connected properly, try to use the option "Get Latest Version" and "Check out for Edit" in the source control explorer.

(4)创建一个新项目,然后签入TFS,检查CodeLens是否在一两分钟后正常工作。

(4) Create a new project, then check in to TFS, check if the CodeLens works fine after a minute or two.

希望这可以帮到你。


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

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