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

JavaScript Formatter doesn't format get-property nodes when they are part of an expression

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Aptana Studio 3.0.4
    • Component/s: None
    • Labels:
      None
    • Environment:

      Aptana Studio 3, build: 3.0.4.201107182028
      Windows 7

      Description

      If you format JavaScript content, the resulting content has no indentation.

      Steps to Replicate :

      1) Open Aptana Studio
      2) Open a JavaScript file
      3) Enter the following content :

      new Request({
        url: _main_href_,
        method: 'get',
        onComplete: function() {
          if(true) {
          } else {
          }
        }
      }).send();
      

      4) Format the file (CNTL+Shift+F)

      Actual Results :

      The resulting file has no indentation.

      Expected Results :

      File formatting should indent content.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgibly Shalom Gibly
                Reporter:
                jwitt Joel Witt
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code