adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Auto-expand collapsed functions on save (Ctrl+S) if changes were made #13045

Open JacquesLouw94S4 opened 7 years ago

JacquesLouw94S4 commented 7 years ago

Description

If you collapse all functions (Alt + 1), and you open one function, make a change to it and save by pressing Ctrl + S, ALL functions suddenly unfold/expand automatically.

Expected Behaviour

On save, all collapsed functions should remain collapsed and all expanded functions should remain expanded. Simply saving a document should not alter the way it is currently being displayed to the user.

Versions

Windows 10 Brackets Release 1.8 build 1.8.0-17108

petetnt commented 7 years ago

Hi @JacquesLouw94S4,

this is a duplicate of #12279, lets continue the discussion there. Thanks for reporting 👍

petetnt commented 7 years ago

Actually it might not be an exact dupe, so lets keep this open 🤔 sorry about that.

dyarbrough93 commented 7 years ago

I have this issue as well and it's very annoying. Windows 10 Release 1.8 build 1.8.0-17108.

Edit: Just tried disabling and re-enabling my Js-Beautify extension and it appears to be fine now. Or maybe it was the restart, not sure.

thehogfather commented 7 years ago

@dyarbrough93 @JacquesLouw94S4 is this still an issue? currently cannot reproduce (in a brackets installation without extensions).