GithubHelp home page GithubHelp logo

Comments (8)

thehogfather avatar thehogfather commented on July 2, 2024

Some more information would be useful. Are there any steps I can take to reproduce the issue?

Note that the extension currently tries to remember the fold settings per file opened. If a file is opened and edited outside of brackets, or if you have more than one instance of brackets opened, then this might cause folding to occur in a potentially undefined manner. But this is a guess. It would be good to have more details if you can.

from brackets-code-folding.

mistic100 avatar mistic100 commented on July 2, 2024

I said "randomly" because I didn't see any special steps to reproduce it :-)
I use Brackets everyday and it happens constantly during the day. I can only guess it happens when changing current file.

I don't use any other editor on my project.

from brackets-code-folding.

thehogfather avatar thehogfather commented on July 2, 2024

ok thanks for the info :) -- it seems that the extension reloads/reinstates the saved linefolds every time the active editor is changed. Fix in progress.

Here is how you can reproduce my version

  1. Open brackets and fold some code regions in file A.
  2. Close brackets (so that code fold extension saves the folds for the open editor - file A).
  3. Reopen brackets (so that code fold extension restores previously saved folds in file A).
  4. Expand some folded regions in file A.
  5. Open another file (file B) in the same project
  6. Switch back to file A.

Outcome: extension restores fold to the state they were in step 3.
Expected: folds should be as they were after some folded regions were expanded in step 4.

Please confirm if this summarises your issue.

Thanks for reporting!

from brackets-code-folding.

mistic100 avatar mistic100 commented on July 2, 2024

I reproduce this, but I think it also happen without closing Brackets.
I absolutely don't know how and when you store folding states, but perhaps it doesn't save everytime we switch between files, so when switching back to a previous file the state is "old".

from brackets-code-folding.

thehogfather avatar thehogfather commented on July 2, 2024

This should now be fixed. I'd appreciate some tests whenever you get some time.

Cheers

from brackets-code-folding.

mistic100 avatar mistic100 commented on July 2, 2024

I update it now and tell you tomorow if it happens again
(I might forget so... no news good news :-) )

from brackets-code-folding.

mistic100 avatar mistic100 commented on July 2, 2024

seems to be ok, at least I don't get any folded blocks I didn't folded previously

but I realized a small incompatibility with Brackets Right-Trim plugin, when I save the file, Right-Trim is applied causing all blocks to unfold, it's absolutely not a big deal and Code Folding seems to handle it nicely (the folding state is saved aftermath and I don't get inconsistant states)

from brackets-code-folding.

thehogfather avatar thehogfather commented on July 2, 2024

Thanks I shall take note of that issue in a new ticket.

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.