vscode icon indicating copy to clipboard operation
vscode copied to clipboard

No intellisense when object definition and declaration is splitted

Open kamiua opened this issue 10 years ago • 2 comments

  • 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.

kamiua avatar Apr 18 '16 13:04 kamiua

This is TS related. Moving...

dbaeumer avatar Apr 18 '16 15:04 dbaeumer

This issue was moved to Microsoft/TypeScript#8146

dbaeumer avatar Apr 18 '16 15:04 dbaeumer