Search

JS member variables defined in constructor no longer included in intellisense by J Balinski

Closed
as Fixed Help for as Fixed

2
0
Sign in
to vote
Type: Bug
ID: 773442
Opened: 12/4/2012 11:17:12 AM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
In Visual Studio 2008 and 2010 we used to be able to see object members defined in the constructor and commented using a "field comment" in the Intellisense results. Since the change to Visual Studio 2012 these members are no longer included.

According to msdn documentation for VS 2012 this should still be working:
http://msdn.microsoft.com/en-us/library/hh542725.aspx
In the Remarks section it states:
When you're documenting a constructor function, the <field> element must appear immediately before the field declaration. The name attribute must match the field name that's used in the source code. For object members, the name attribute can be omitted if the <field> element appears immediately before the object member declaration.

Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Create a javascript file in a website in VS 2012 with the following content:

Type.registerNamespace("Test");
Test.SimpleObject = function()
{
    ///<summary>A very simple example</summary>
    ///<field name="_testString" type="String"/>
    ///<field name="_testBool" type="Boolean" />

    this._testString = null;
    this._testBool = false;

};
Test.SimpleObject.prototype =
{
    getStuff: function ()
    {
        ///<summary>Get stuff</summary>
        ///<returns type="Boolean"/>
        
        return false;
    }
};

Test.SimpleObject.registerClass("Test.SimpleObject");

Now within the getStuff method invoke intellisense on the 'this' object by typeing 'this.'

Product Language

English

Operating System

Windows 7 SP1

Operating System Language

English

Actual results

The member variables defined in the constructor are not included in the intellisense.

Expected results

Member variables should be included in Intellisense as they were in VS 2008 and 2010.
File Attachments
0 attachments
Sign in to post a comment.
Posted by J Balinski on 1/21/2013 at 12:32 PM
Does anyone know when this fix will be available for download? Is there anyway to get a hotfix for this one now?
Posted by Microsoft on 12/4/2012 at 9:52 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 12/4/2012 at 11:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.