Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeLens only showing references?

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:

enter image description here

Here is what I see in VS:

enter image description here

Is there anything wrong with my VS setup?

like image 472
Neolisk Avatar asked Jul 22 '15 17:07

Neolisk


People also ask

How do I turn off references in Visual Studio code?

Just open Visual Studio. Go in Tools > Environment > Text editor > Codelens. and then disable them .

How do I use CodeLens Vscode?

Step 1: From Settings – Type Codelens and Enable the Editor: Code Lens and Javascript > References Code Lens to check the references in JavaScript File. Step 2: Then open any of your JavaScript file to identify the References of Property or Method in the file.

Can references be seen in Solution Explorer?

“On the Solution Explorer panel, expand the References list by clicking the arrow to its left. We can now inspect it by double-clicking the MonoGame.


Video Answer


1 Answers

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.

like image 75
jessehouwing Avatar answered Oct 03 '22 02:10

jessehouwing