在为javascript编写vsdoc格式的T型数组文档时,我是否发现了错误?

在为javascript编写vsdoc格式的T型数组文档时,我是否发现了错误?,javascript,visual-studio-2010,xml-comments,vsdoc,Javascript,Visual Studio 2010,Xml Comments,Vsdoc,接下来,我无法让intellisense为给定类型的数组正常工作。下面是一些演示问题的代码 function MyType() { /// <summary>Class description here</summary> /// <field name="PropertyA" type="Boolean">Description of Property A</field> /// <field name="Prope

接下来,我无法让intellisense为给定类型的数组正常工作。下面是一些演示问题的代码

function MyType() {
    /// <summary>Class description here</summary>
    /// <field name="PropertyA" type="Boolean">Description of Property A</field>
    /// <field name="PropertyB" type="String">Description of Property B</field>
 }
MyType.prototype.PropertyA = false;
MyType.prototype.PropertyB = "";

function testFunc(arrayOfMyType) {
    /// <summary>Description of testFunc</summary>
    /// <param name="arrayOfMyType" type="Array" elementType="MyType">asdfasdf</param>

    // right here, I should get the intellisense for an item of type MyType but I don't
    arrayOfMyType[0].

}
函数MyType(){
///这里有课程描述
///物业A的说明
///物业B的说明
}
MyType.prototype.PropertyA=false;
MyType.prototype.PropertyB=“”;
函数testFunc(arrayOfMyType){
///testFunc的描述
///asdfasdf
//在这里,我应该为MyType类型的项目获取intellisense,但我没有
arrayOfMyType[0]。
}
就在
arrayOfMyType[0]
之后,我应该获得MyType的intellisense,但我没有。我还尝试了一个for-in循环,看看这是否会带来正确的智能感知,但它没有。我应该注意到,
arrayOfMyType
对于
Array
确实有适当的智能感知,如果我将其从
Array
更改为
MyType
,那么我就得到了正确的智能感知,但不是像示例中所评论的那样作为
MyType
类型的
数组

目前我只能访问SP1VS2010之前的版本,所以我不确定他们是否修补了这个bug

谁能告诉我

  • 我写的vsdoc xml注释不正确
  • 我是正确的,还是不希望在那一行获得MyType的intellisense
  • 上述代码段的intellisense在vs2010 sp1中工作

与ItelliSense相比,它不支持JS XML文档注释的每一项功能。我想这是一个不受支持的问题。

功能点(x,y){
///我的班级。
///X坐标
这个.x=x;
///Y坐标
这个。y=y;
}
函数testFunc(arrayOfMyType){
///做一件事
///点阵列
//做点什么
}

那太糟糕了,我必须使用microsoft connect,并建议将其作为一项功能/如果未实施,请务必检查。这也是一个遗憾,因为我有一些非常棒的js intellisense的东西出来了,如果实现了这个功能,它们可能会更酷
function Point(x, y) {
    /// <summary>My class.</summary>

    /// <field name="x" type="Number">X coordinate</field>
    this.x = x;

    /// <field name="y" type="Number">Y coordinate</field>
    this.y = y;
}

function testFunc(arrayOfMyType) {
    /// <summary>Do a thing</summary>
    /// <param name="arrayOfMyType" type="Array" elementType="Point">Array of Points</param>

    // Do something
}