GO TO DEFINITION from Javascript file not working

In Visual Studio 2013 Premiumwhen I'm in a javascript file and say a class TypeScriptwith a name MyClass. At the end of the TS file, I create it as follows:

var MyInstanceClass = MyClass

Now MyInstanceClass can be used everywhere. I am trying to understand why from a JavaScript file I use this instance similar to this

MyInstanceClass.MyMethod();

but when I try to use GO TO DEFINITION for MyMethod, I get

Go to definition failed. Either the carriage is already in the definition, or because the explicit definition cannot be found

I tried MyInstanceClassinstead of the method and I get the same.

+4
source share

Source: https://habr.com/ru/post/1612911/


All Articles