Aptana Scriptdoc没有显示在Code Assist中

问题描述

| 我已经按照所有说明进行操作,以使我的代码注释显示在Code Assist中,但是我没有任何运气。当前在Eclipse中使用Aptana 3插件(可能是问题吗?)
myObj = {
/** 
* Gets the current foo 
* @param {String} fooId The unique identifier for the foo.
* @return {Object} Returns the current foo.
*/
getFoo: function (fooID) {
    return bar[fooID];
}
} 当我具有以上代码时,该功能显示代码辅助中,但没有与此相关的文档。     

解决方法

        在Aptana支持论坛上发现其Scriptdoc设置不支持未声明的var。 如果我将上面的代码更改为:
var myObj = {
    /** 
    * Gets the current foo 
    * @param {String} fooId The unique identifier for the foo.
    * @return {Object} Returns the current foo.
    */
    getFoo: function (fooID) {
        return bar[fooID];
    }
}
然后一切正常