adobe / brackets

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

Undo doesn't work after saving #10909

Open in-in opened 9 years ago

in-in commented 9 years ago

First of all, thank you for excellent IDE.

I use Csscomb to formatting my Sass code but this plugin "CSScomb Brackets" not allow to use my own configuration (.csscomb.json). So I started to use grunt-csscomb this work well for me, but after formatting I lose undo history. Do I have any chance to fix it. Thank you anyway.

For information, I used the same process with Sublime Text and I can use Undo history with it. I also tried run Brackets without plugins and get same bad experience.

OS: Linux Mint 17.1 Cinnamon 64-bit Brackets: 1.2 experimental build 1.2.0-15697 (release 8f82e2a97)

prafulVaishnav commented 9 years ago

@in-in Brackets do not maintain the undo history if the file is modified by some other process.We have similar item in backlog to remember the undo history. Please upvote it here

petetnt commented 9 years ago

As a stop-gap workaround you could try replacing the CSScomb Brackets-extensions config-file with your own (It's located at ..\Brackets\extensions\user\csscomb-brackets\node_modules\csscomb\config). Sadly that doesn't really work project-by-project basis but you could try filing an issue to hano/csscomb-brackets.

ogrotten commented 8 years ago

I've found that undo-after-save normally works, except it sometimes stops working. I've not nailed down the exact instance of what causes it, but my first test succeeded to make it stop working only once.

It was the process of ...

And then ctrl-z redo didn't work. But as said this only provoked the failure 1 time. I did the above immediately after opening a file. I've tried it several times since, but to no avail.

I shall keep an eye out for further info.

petetnt commented 8 years ago

@ogrotten Thanks for the steps! Check out issue #11826 where the Undo-issue in general is being tracked