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 Bug
    • Status: Closed
    • Priority: None None
    • 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.

        Issue Links

          Activity

          Joel Witt (Inactive) created issue -
          Ingo Muschenetz made changes -
          Field Original Value New Value
          Assignee Ingo Muschenetz [ ingo ] Shalom Gibly [ sgibly ]
          Fix Version/s Aptana Studio 3.0.4 [ 11503 ]
          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.
          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 :

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

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


          Actual Results :

          The resulting file has no indentation.


          Expected Results :

          File formatting should indent content.
          Shalom Gibly made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Shalom Gibly made changes -
          Summary JavaScript Editor Formatter Does Not Include Any Indentation JavaScript Formatter doesn't format get-property nodes when they are part of an expression
          Joel Witt (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Shalom Gibly made changes -
          made changes -
          Status Closed [ 6 ] Closed [ 6 ]
          Nikolai Derzhak made changes -
          Workflow Appc-Jira [ 88998 ]  PyDev migration copy of Appc-Jira [ 115562 ]
          Nikolai Derzhak made changes -
          Workflow  PyDev migration copy of Appc-Jira [ 115562 ] Appc-Jira [ 123204 ]

            People

            • Assignee:
              Shalom Gibly
              Reporter:
              Joel Witt (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development