Comments (8)
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.
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.
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
- Open brackets and fold some code regions in file A.
- Close brackets (so that code fold extension saves the folds for the open editor - file A).
- Reopen brackets (so that code fold extension restores previously saved folds in file A).
- Expand some folded regions in file A.
- Open another file (file B) in the same project
- 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.
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.
This should now be fixed. I'd appreciate some tests whenever you get some time.
Cheers
from brackets-code-folding.
I update it now and tell you tomorow if it happens again
(I might forget so... no news good news :-) )
from brackets-code-folding.
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.
Thanks I shall take note of that issue in a new ticket.
from brackets-code-folding.
Related Issues (20)
- code folding breaking on titled for loops HOT 3
- not work fine in this case, javascript
- Use character '|' on spanish keyboards HOT 2
- wrong fold marks when editing or removing folded code region
- inaccurate fold marks added to document when a folded code region is removed
- Not working at all since last update HOT 6
- Error using latest release HOT 8
- Uncheck "Enable code folding" from the settings issue HOT 4
- Beginning of lines in files are occluded HOT 13
- Version 0.3.4 doesn't fold HOT 3
- Ctrl+Shift+arrow causes error and weird behaviour HOT 4
- version not compatible :( HOT 4
- VI support for code folding HOT 2
- Not updated for 1.5 HOT 1
- What about Jade folding? HOT 1
- (imho) code-folding overloads state.json? HOT 2
- Unable to install extension HOT 2
- shortcut on W7
- Not compatible with current Brackets Version. HOT 1
- sprint 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brackets-code-folding.