Put back code that was commented out

This commit is contained in:
Antonio Scandurra
2017-02-27 16:37:48 +01:00
parent 7b8849b835
commit e453b04105
7 changed files with 19 additions and 11 deletions

View File

@@ -131,7 +131,7 @@ class AtomEnvironment extends Model
# Call .loadOrCreate instead
constructor: (params={}) ->
{@applicationDelegate, @window, @document, @clipboard, @configDirPath, @enablePersistence, onlyLoadBaseStyleSheets} = params
{@blobStore, @applicationDelegate, @window, @document, @clipboard, @configDirPath, @enablePersistence, onlyLoadBaseStyleSheets} = params
@unloaded = false
@loadTime = null
@@ -733,6 +733,7 @@ class AtomEnvironment extends Model
@storeWindowBackground()
@packages.deactivatePackages()
@saveBlobStoreSync()
@unloaded = true
openInitialEmptyEditorIfNecessary: ->
@@ -866,6 +867,11 @@ class AtomEnvironment extends Model
showSaveDialogSync: (options={}) ->
@applicationDelegate.showSaveDialog(options)
saveBlobStoreSync: ->
return unless @enablePersistence
@blobStore.save()
saveState: (options) ->
new Promise (resolve, reject) =>
if @enablePersistence and @project

View File

@@ -35,7 +35,8 @@ exports.compile = function (sourceCode, filePath) {
var output = CoffeeScript.compile(sourceCode, {
filename: filePath,
sourceFiles: [filePath]
sourceFiles: [filePath],
inlineMap: true
})
// Strip sourceURL from output so there wouldn't be duplicate entries

View File

@@ -51,7 +51,7 @@ require('whitespace')
require('wrap-guide')
# Like sands through the hourglass, so are the days of our lives.
module.exports = ->
module.exports = ({blobStore}) ->
{updateProcessEnv} = require('./update-process-env')
path = require 'path'
require './window'
@@ -72,7 +72,7 @@ module.exports = ->
TextEditor.setClipboard(clipboard)
window.atom = new AtomEnvironment({
window, document, clipboard,
window, document, clipboard, blobStore,
applicationDelegate: new ApplicationDelegate,
configDirPath: process.env.ATOM_HOME,
enablePersistence: true,

View File

@@ -7,6 +7,7 @@ fs = require 'fs-plus'
{Emitter, CompositeDisposable} = require 'event-kit'
CompileCache = require './compile-cache'
ModuleCache = require './module-cache'
ScopedProperties = require './scoped-properties'
BufferedProcess = require './buffered-process'