-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Addresses #13264 where setting saveFoldStates
preference to false caused folding problems
#13269
Addresses #13264 where setting saveFoldStates
preference to false caused folding problems
#13269
Conversation
…lse caused the code folding extension to stop working.
@thehogfather, the changes look good to me. Initialize the uninitialized property with an empty object and get rid of the undefined/null error message down the road. Is The only problem I see is the Travis build is failing. @ficristo or @petetnt any ideas what might be causing the build fail? |
Yes that is correct. With respect to Travis failing, I'll pull upstream and push to trigger the build again. The error messages show it did not get very far into the build process. |
…gfather/issue-13264-save-fold-states-error
That did no seem to help. Let me know if there is anything I can do. |
Restarted the CI by hand, I'll look into it if it still fails |
I was just trying out with the OAuth token and couldn't exceed the limit in 60 attempts. Not sure why this one failed! |
We fixed the CI issue 👍 |
Fixes #13264 (adding this comment so GitHub creates a link to the issue) |
Okay, I checked that the fix works and ran the unit tests: no errors. Merging. |
This PR properly initialises the
_lineFolds
cache to the empty object when the saveFoldStates preferences is set to false. Previously, this was not being done and it caused issues down stream, i.e., when rendering gutters as the active editor changed.Also updated the test cases to accommodate the requirement.
cc @lkcampbell @ficristo