From @jakub-g on August 24, 2018 15:2
Perhaps related to #55910
- VSCode Version: 1.26.1 stable, 1.27.0 insiders
- OS Version: Win 10
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
- Create JS file with contents like this (this kind of constructions are quite often used in old school mixin-based frameworks)
function MyAwesomeConstructor() {
/**
* @return {Number} Always 42
*/
this.foo = function() {
return 42
}
this.bar = function() {
this.foo()
}
}
const myObject = new MyAwesomeConstructor()
- Hover line 10:
this.foo() call
Expected:
- On hover, quick info with the
this.foo jsdoc from the beginning of the file is displayed
- On
Ctrl+clicking on foo(), the editor should move me to the definition
Actual:
- Quick info stating
any is displayed
- Not possible to
Ctrl+click
Note: When you write myObject. and do CTRL_SPACE, both foo and bar are correctly suggested.
Copied from original issue: microsoft/vscode#57157