-->

CodeLens only showing references?

2020-04-07 04:43发布

问题:

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?

回答1:

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.