Skip to content

No intellisense when exporting es3 style class  #8144

@dbaeumer

Description

@dbaeumer

From @denysyefimenko on April 18, 2016 11:9

  • VSCode Version: 1.0.0
  • OS Version: Windows 10 Enterprise

Steps to Reproduce:

  1. Create two js files.

moduleA.js

var constructorFunction = function () {};
constructorFunction.prototype.prototypeMethod = function () {};
module.exports = constructorFunction;

moduleB.js

var moduleA = require('./moduleA');
var constructedObject = new moduleA();
constructedObject.
  1. Try get intellisense suggestion after dot in moduleB.
  2. No intellisense provided.
  3. If I change code in moduleA as following:
function constructorFunction () {}
constructorFunction.prototype.prototypeMethod = function () {};
module.exports = constructorFunction;

intellisense in moduleB starts working.

Expected result: intellisense works no matter how exported function is defined.

Copied from original issue: microsoft/vscode#5442

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions