3

Somehow CodeLens doesn't work correctly. It only shows -references. It was working fine before.

I checked the Options -> Text Editor -> All Language -> CodeLens

All options are checked.

Anyone see this before ? Thanks

maxisam
  • 21,975
  • 9
  • 75
  • 84
  • Do you use Typescript in your solution? I have the same problem and I read somewhere that Typescript could be the problem and that the CodeLens teams was looking into it (in august 2015) – Frode Oct 03 '15 at 12:47
  • I do have Typescript. But I have two projects. Only one of them has this situation. – maxisam Oct 04 '15 at 18:59
  • I you haven't already, install TypeScript 1.6.3 and see if it helps – Frode Oct 04 '15 at 20:23
  • Too bad, I am on typescript 1.6.3 already. – maxisam Oct 05 '15 at 14:09
  • I think I solved my problem today. I had circular project references in my solution (A->B->A). I moved classes in project A needed by both project A and project B into a new project C. A->B, A->C and B->C. Circular project references was gone, and CodeLens started to work again. Check if you have any circular project references in your solution – Frode Oct 11 '15 at 21:11
  • not my case. How is that possible in the first place anyway ? I thought VS would stop you before you add it. – maxisam Oct 12 '15 at 14:28
  • 1
    Having any typescript projects in your solution is enough to trigger this issue. It existed in Vs2015 RTM. We (my team) very recently fixed this problem. The fix should be available in the next preview of Vs update. Hope that helps. – balajikris Oct 16 '15 at 17:49
  • oh yeah ! Thank you @balajikris I really think this feature is awesome ! – maxisam Oct 16 '15 at 19:41
  • @balajikris FYI it is fixed after update 1 RC1 – maxisam Nov 04 '15 at 22:24
  • 1
    @maxisam - great! good to know it works now. thanks for getting back :) – balajikris Nov 30 '15 at 22:21

3 Answers3

3

In my case the conflict was with "Productivity Power Tools 2015"

After disable "Productivity Power Tools" extension Codelens back to work

PrimeNum
  • 53
  • 6
1

update: It is fixed after I upgrade to vs2015 update 1 RC1

It turns out it is conflicted with another extension I installed called "Go To Implementation".

It happens again. This time I have no clue. Anyone ?

maxisam
  • 21,975
  • 9
  • 75
  • 84
1

I had this issue as well. It turned out to be my TFS connection in Visual Studio was incorrect or corrupted after upgrading to VS 2015 from 2012. The Team Foundation Server URL had the Project Collection missing and I was getting a "One or more errors has occurred." when going to Manage Connections under Team Explorer.

To fix it:

  • Open the Team Explorer navigation dropdown and Select Projects and My Team -> Manage Connections.
  • Click the Manage Connections dropdown and Select Connect to Team Project.
  • Add server if not populated and check off appropriate Team Collection and Team Project
  • Click Connect and Visual Studio reconnected with the fixed/updated URL. My server was already populated and appropriate Team Project checked, so I just clicked Connect.

After I followed those steps CodeLens TFS information was showing up.

JonathanN
  • 672
  • 7
  • 17