mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Load text package before deserializing path state
This is required for any editors that are deserialized since a fallback grammar is always needed.
This commit is contained in:
@@ -44,6 +44,7 @@ windowAdditions =
|
||||
startApplication: ->
|
||||
handleWindowEvents()
|
||||
config.load()
|
||||
atom.loadTextPackage()
|
||||
buildProjectAndRootView()
|
||||
keymap.loadBundledKeymaps()
|
||||
atom.loadThemes()
|
||||
@@ -59,7 +60,8 @@ windowAdditions =
|
||||
RootView = require 'root-view'
|
||||
Project = require 'project'
|
||||
|
||||
if windowState = atom.getRootViewStateForPath(atom.getPathToOpen()) and windowState?.project?
|
||||
windowState = atom.getRootViewStateForPath(atom.getPathToOpen())
|
||||
if windowState?.project?
|
||||
window.project = deserialize(windowState.project)
|
||||
window.rootView = deserialize(windowState.rootView)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user