Hirse / brackets-beautify

Brackets Extension to beautify JavaScript, HTML, and CSS files.
MIT License
34 stars 3 forks source link

brackets-beautify deletes selection on file save #23

Open MikeTheGreat opened 7 years ago

MikeTheGreat commented 7 years ago

I'm running Windows 7. I'm using Brackets Release 1.7 build 1.7.0-16898 (release b0a363b71) (build timestamp: Wed Jun 08 2016 12:27:56 GMT+0100) I'm using brackets-beautify 1.0.2. I have the Edit > Beautify On Save option set.

When I change the file, select some text, and then save the file then all the text in the selection is deleted. To repro:

  1. open a file
  2. select some text
  3. hit 'tab' to move it over (or whatever)
  4. Control+S to save
  5. Observe the newly missing text :)

Note: I don't have any other extensions installed for Brackets. Also: when I disabled Beautify and tried to repro the bug I did NOT see the text disappear. Upon re-enabling Beautify the bug happened again.