Reputation: 1420
I'm using VS Code and I would like Intellisense to recognize javascript prototype functions. Is there a way to configure it to do so?
function MyObject() {}
MyObject.prototype.foo = function() {};
MyObject.prototype.bar = function() {};
var myObj = new MyObject();
myObj. //I want Intellisense to show me the foo and bar functions here
Upvotes: 5
Views: 1530
Reputation: 71
This is supported in the latest versions of VS Code.
https://github.com/Microsoft/TypeScript/wiki/Salsa
Upvotes: 2