lib/scratch.js
/**
	 * @description Closes the scratch editor.
	 */
@description Closes the scratch editor.
@description Closes the scratch editor .
closeScratchEditor() {
		let scratchEditor = this.getScratchEditor();
		if (atom.config.get("scratch.autosave")) {
			scratchEditor.save();
		} else {
			if (scratchEditor.shouldPromptToSave()) {
				atom.workspace.getActivePane().promptToSaveItem(scratchEditor);
			}
		}
		scratchEditor.destroy()
	}
closeScratchEditor ( ) { let scratchEditor = this . getScratchEditor ( ) ; if ( atom . config . get ( "scratch.autosave" ) ) { scratchEditor . save ( ) ; } else { if ( scratchEditor . shouldPromptToSave ( ) ) { atom . workspace . getActivePane ( ) . promptToSaveItem ( scratchEditor ) ; } } scratchEditor . destroy ( ) }
@description Closes the scratch editor.
@description Closes the scratch editor .