JS: Can't find extended class declaration if no constructor is present

Suppose we have 2 classes: parent and child, extended from parent.

If constructor is present only in parent class, then declaration search (Ctrl+B) and tooltip will all point at it, no matter which class do you call. Thus you can't simply go to the real declaration via click or declaration search.

Adding constructor to the child class solves the issue.

Below you can see these two examples.

 

Is it intended behavior or is it a bug?

0
1 comment

Well... we go to the constructor declaration because it is the constructor call. Please use Go to Implementation to jump to ChildClass from here.

Related ticket (https://youtrack.jetbrains.com/issue/WEB-28642) is fixed in 2020.1

0

Please sign in to leave a comment.