TypeScript: TS 2.0.3 wrongly clears VS2015 "Find Symbol Results" panel

TypeScript Version: 2.0.3

When using “Find All References” in VS2015 in any language (e.g. C#) and the project has tsconfig.json, a typescript file, and any NPM @types package, then the “Find Symbol Results” panel is occasionally cleared for no obvious reason.

I’ve checked and this doesn’t seem to happen when using typings or if there’s no tsconfig.json

Steps To Reproduce

  1. Create a new Web Application - MVC project (both MVC5 and ASP.NET Core seem to break for me, but I’ll continue my steps with MVC5)
  2. Add a tsconfig.json file to the root of the project, this only needs to contain the outer curly braces.
  3. In a command line in the root of the website run npm install @types/jquery --save
  4. Add a typescript file to the project (e.g. /Scripts/Site.ts)
  5. Open a C# file with a class referenced in other files (e.g. /Models/AccountViewModels.cs") and close all other files.
  6. Do a find all references on a symbol in that file (e.g. ExternalLoginConfirmationViewModel.Email)
  7. Navigate through the list of results in the “Find Symbol Results” panel.
  8. After a moment the “Find Symbol Results” panel clears

Expected behavior:

The results in the “Find Symbol Results” panel remains until a new “Find All References” is executed.

Actual behavior:

The results are cleared.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 8
  • Comments: 29 (14 by maintainers)

Most upvoted comments

We’ve submitted the VS 2015 fix, so it should be in an upcoming SDK update.

@jvernon-panopto, I think the fix made it into the RC of TS SDK 2.5: https://www.microsoft.com/en-us/download/details.aspx?id=48593

I am experiencing this issue as well. I am using ts v2.0.6 in VS2015 since it was released, but I noticed my Symbol Results disappearing only a few weeks ago. Makes me wonder if I might have caused it with some setting change or something.

It also happens in all my projects even ones without a @types or tsconfig. I only have ts in my startup project.

Any update on this would be appreciated.

Any news on a fix for this, it is pretty annoying?