Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-2542

JS CA assist does not show sdoc comments on object properties

    Details

      Description

      {html}<div><p>Assigned to <a href=
      "http://aptanastudio.tenderapp.com/discussions/problems/2972-scriptdoc-fails-to-show-up-in-content-assist">
      Tender discussion #2972</a>. Invoke CA using the following code
      with the cursor at the '|' character.<br></p>
      <pre>
      <code class="js">myObj = {
      /**
      * Gets the current foo
      * @param {String} fooId The unique identifier for the foo.
      * @return {Object} Returns the current foo.
      */
      getFoo: function (fooID) {

      }
      };

      myObj.|</code>
      </pre>
      <p>Select "getFoo" from the CA popup and notice that the sdoc
      comments are not being applied to the function. Now add "var" to
      the "myObj" declaration and repeat the above steps. This time sdoc
      comments are being applied</p></div>{html}

      It is expected that you will see the text from the sdoc block within content assist popup when selecting getFoo. You should see this content whether "var" exists or not.

        Attachments

          Activity

            People

            • Assignee:
              klindsey Kevin Lindsey
              Reporter:
              aptana1 Aptana
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code