GithubHelp home page GithubHelp logo

Comments (6)

brennanMKE avatar brennanMKE commented on July 2, 2024

I've moved a few hundred lines to another file and folding is still misbehaving. I've attached a screenshot. I do not think there is anything wrong with the syntax. JSHint passes with no errors.

funkyfolding

from brackets-code-folding.

thehogfather avatar thehogfather commented on July 2, 2024

oh that looks interesting. I think it might have to do with saving and restoring line folds ...

How many lines of code do you have in your file?

Could you copy the contents of the file onto a new file and tell me if the fold marks are then rendered correctly?

Also what happens when you use Shift-Alt-1 (this should expand all code regions)?

from brackets-code-folding.

brennanMKE avatar brennanMKE commented on July 2, 2024

I broke up the code into many files now and I am not seeing the folding issue anymore. My guess is that updating to the latest version of Brackets did not clear out any folds which were stored previously.

from brackets-code-folding.

thehogfather avatar thehogfather commented on July 2, 2024

Thanks for the update. Let's keep and eye on it just incase it resurfaces.

from brackets-code-folding.

thehogfather avatar thehogfather commented on July 2, 2024

So I have been able to reproduce similar issue.

  1. Load any file and fold some code regions.
  2. Add or remove a number of lines above the folded code regions.
  3. Save and close the file so that it is now removed from the working files list.
  4. Reopen the file.

Result is that the folded code regions are restored wrongly. This is because the extension does not currently update the folded regions correctly.

A fix is in progress.

from brackets-code-folding.

brennanMKE avatar brennanMKE commented on July 2, 2024

Excellent. I see there is a new Brackets update available. I look forward to your update and the new release.

from brackets-code-folding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.