Trying to get accustomed to Visual Studio's XML javascript comment syntax. I have a question specifically about type. Say I have a custom type such as...
namespace.types.User = function(_id, _name) {
/// <field name="id" type="Number">ID of the user</field>
/// <field name="name" type="String">Name of the user</field>
this.id = _id;
this.name = _name;
};
If I want to reference that type in a <field> later on I would do something like...
namespace.session = function() {
/// <field name="CurrentUser" type="namespace.types.User">The current User of the session</field>
this.CurrentUser = new namespace.types.User('foo', 'bar');
};
However, when I do this Intellisense will show me the description of what .CurrentUser means but it will not show any suggestion for either .id or .name. In other words it acts like it's just a plain object with no other type data.
How can I get VS intelligence to pickup the richer description of custom objects?