vincenting/BeautifyRust

Sublime asks to reload the file.

ligoore opened this issue · 2 comments

When formatting UNSAVED file with "beautify_rust" command, sublime pops-out the window and asks to reload the file. When formatting SAVED (unformatted) file, this behavior does not take place.

The situation can be omitted when using "run_on_save" option. However, manual command execution should work without "annoyances" too.

Same issue as @ligoore

Opened #8 to fix this, because I got annoyed at the popup sometimes happening on save as well.

I've tested it on windows, I haven't got my Linux computer with me right now. Formatting works without requiring the file that is being edited to be saved, but it does require it to be a file - i.e. you can't just paste rust code into an untitled editor and format that.