dnbard / brackets-documents-toolbar

Extension that adds new toolbar with a list of all open documents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Closing unsaved file

TomMalbran opened this issue · comments

When closing an unsaved file it should show a dialog to save the file like the one that is displayed when closing an unsaved file from the Working Set.

Good point!

I found out about it, because I accidentally closed an unsaved file and lost the changes I made. Luckily there wasn't that many modifications.

If you use the close command to close the files, it will work fine. Notice that using close from the context menu works as expected.

Thanks! I'll change my internal close method to default close command (hope we can invoke these commands without context menu)