vscode
vscode copied to clipboard
No intellisense when object definition and declaration is splitted
- VSCode Version: 1.0.0
- OS Version: Windows 10
Steps to Reproduce:
1 Having following code:
function constructorFunction () {
this.otherFunction = function () {}
}
constructorFunction.prototype.method = function () {};
var x;
x = new constructorFunction();
x.method();
2 Try to get intellisense suggestions on x.method(). No suggestions provided (apart from generic ones).
3 Do the following change:
replace
var x;
x = new constructorFunction();
with
var x = new constructorFunction();
4 Intellisense starts working on x. It suggests both methodand otherFunction.
This is TS related. Moving...
This issue was moved to Microsoft/TypeScript#8146