Add back and deprecate atom.showSaveDialogSync

This commit is contained in:
Wliu
2017-12-04 23:26:51 +01:00
parent e889f9f5a6
commit 7f01a8e718

View File

@@ -1080,6 +1080,13 @@ class AtomEnvironment {
return this.deserialize(state)
}
showSaveDialogSync (options = {}) {
deprecate(`atom.showSaveDialogSync is deprecated and will be removed soon.
Please, implement ::saveAs and ::getSaveDialogOptions instead for pane items
or use Pane::saveItemAs for programmatic saving.`)
return this.applicationDelegate.showSaveDialog(options)
}
async saveState (options, storageKey) {
if (this.enablePersistence && this.project) {
const state = this.serialize(options)