Describe the bug
In some cases, there can be multiple jump point resolution on jump to definition. in which case we should ask the user where to jump.
Reproduction
class MyBaseClass {
sayHello() {
throw new Error("Method not implemented");
}
}
class JohnClass extends MyBaseClass {
sayHello() {
console.log("Hello, John!");
}
}
class JaneClass extends MyBaseClass {
sayHello() {
console.log("Hello, Jane!");
}
}
class AliceClass extends MyBaseClass {
sayHello() {
console.log("Hello, Alice!");
}
}
const myArray = [
new JohnClass(),
new JaneClass(),
new AliceClass()
];
for (const obj of myArray) {
obj.sayHello();
}
now ctrl-click to jump to definition on obj.say|Hello(); where | is the click cursor. See that it only shows one class description but not any parents.
Expected behavior
It should show a list of possible jump targets to jump to.
Describe the bug
In some cases, there can be multiple jump point resolution on jump to definition. in which case we should ask the user where to jump.
Reproduction
now ctrl-click to jump to definition on
obj.say|Hello();where|is the click cursor. See that it only shows one class description but not any parents.Expected behavior
It should show a list of possible jump targets to jump to.