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

Javascript errors break code folding

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.2.1
    • Fix Version/s: None
    • Component/s: Folding, JS
    • Labels:
      None
    • Environment:

      Windows 7, Mac OS 10.8.1, and Ubuntu 12.04

      Description

      Same problem as APSTUD-4061 but for the javascript editor.

      My javascript code is nicely folded on opening the file, but before I can even finish typing a new if structure the whole document unfolds because of a syntax error. I have tried to disable these things in Preferences > Validation but nothing seems to fix the problem.

      Steps to reproduce:
      1. Create a JavaScript file with the following code:

      /**
       * Multiline comment
       */
       
      function foo() {
       
      }
       
      function bar() {
       
      }
      
      

      2. Collapse all folding markers in the file. ( Folding > Collapse all )
      3. Add the following code to the end of the file:

      if
      

      Expected result:
      Nodes should stay folded.

      Actual result:
      All nodes unfold after the syntax error is detected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                sebastiaan Sebastiaan Klaasen
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Integration