Closed
Description
TypeScript Version: 2.9.0-dev.20180427
Search Terms:
- definition
- javascript
Code
For the project:
base.js
module.exports = class Base {
constructor() {
console.log( "base" );
}
}
foo.js
const Base = require( "./base" );
class Foo extends Base {
bar() {
const base = new Base();
const BaseClass = Base;
}
}
- Run
go to definition
onBase
innew Base()
infoo
Expected behavior:
Goes to class Base
in bar.js
Actual behavior:
Goes to require
. If you use an import, we navigate to the class itself instead of to the import