Commit Graph

510 Commits

Author SHA1 Message Date
Nathan Sobo
8d7a08d07f Parameterize view registry on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
e803801145 Parameterize clipboard on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
3d118b8a33 Pass atom environment as second arg when deserializing objects 2015-10-07 15:24:56 -05:00
Nathan Sobo
eb2ace37b4 Move TextEditor construction to Workspace
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:56 -05:00
Max Brunsfeld
eb68c9135e Don't use atom global in default commands
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
8436715b02 Deserialize Workspace in atom.loadStateSync 2015-10-07 15:24:55 -05:00
Nathan Sobo
156cdfaf31 Move Workspace.deserialize to an instance method
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
3d5f6c858d Move grammar override assignment into loadStateSync
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
d0e1505a0f Inline deserializePackageStates into loadStateSync
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
3491fa3650 Construct Project during Atom environment construction
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
d2e6cb0097 Fix updating of load settings
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
26f0ef5424 Move Project.deserialize to instance method
So we can instantiate atom.project during Atom environment construction.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
6348d8f078 Remove last Atom static methods 2015-10-07 15:24:54 -05:00
Nathan Sobo
6c67f42eab Move state loading for Atom environment to an instance method 2015-10-07 15:24:54 -05:00
Nathan Sobo
d08180ceb0 Remove mode parameter from atom environment 2015-10-07 15:24:54 -05:00
Nathan Sobo
677d7d6975 Load base stylesheets on ThemeManager construction 2015-10-07 15:24:54 -05:00
Nathan Sobo
727d6f60f7 🎨 2015-10-07 15:24:54 -05:00
Nathan Sobo
b240ffc161 🎨 2015-10-07 15:24:54 -05:00
Nathan Sobo
e838863bc7 Handle window/document events in startEditorWindow and remove initialize 2015-10-07 15:24:54 -05:00
Nathan Sobo
dd4b9346bb Deserialize grammar on editor window start 2015-10-07 15:24:53 -05:00
Nathan Sobo
0f5483a2ed Assign config schema on Atom environment construction 2015-10-07 15:24:53 -05:00
Nathan Sobo
4ca09ef7d3 Assign to cached load settings correctly 2015-10-07 15:24:53 -05:00
Nathan Sobo
ee270db7ac Move document mutation to startEditorWindow 2015-10-07 15:24:53 -05:00
Nathan Sobo
2737e05561 Display window in initialize-application-window script 2015-10-07 15:24:53 -05:00
Nathan Sobo
dba2a77e1f Assign env vars in initialize-application-window
Also, add a get-window-load-settings helper.
2015-10-07 15:24:53 -05:00
Nathan Sobo
7d014581cf Move installation of uncaught error handler to startEditorWindow 2015-10-07 15:24:53 -05:00
Nathan Sobo
a573e1f381 Watch for theme changes in ThemeManager instead of Atom environment 2015-10-07 15:24:53 -05:00
Nathan Sobo
23d1151ca3 Initialize KeymapManager on Atom environment construction 2015-10-07 15:24:52 -05:00
Nathan Sobo
eead10a9c5 Initialize loadTime to null in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
085b945015 Don't mess with disposables in initialize 2015-10-07 15:24:52 -05:00
Nathan Sobo
e0d426b817 Register deserializers, view providers, and commands in Atom constructor
Previously, these registrations were scattered all over the codebase and
required that `global.atom` be defined, which creating weird ordering
issues. Registering them all from the global makes the relationships
clearer and means we don’t have to assign a global to set up a fully-
functional environment.
2015-10-07 15:24:52 -05:00
Nathan Sobo
27762866c0 Build GrammarRegistry in Atom environment constructor
As part of this, we no longer serialize/deserialize the grammar registry
instance, but instead just restore the grammarOverridesByPath state.
Ultimately I’d like to store these overrides on the editor instead.
2015-10-07 15:24:52 -05:00
Nathan Sobo
c1f5d6b8bf Build Clipboard in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
35c2ccd508 Build MenuManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
6de0da792b Build ContextMenuManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
943f6cf513 Build ThemeManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
c4bbd2bbf2 Build StyleManager in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
33e7af611e Build views in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
2c440dada8 Assign commands in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
54ab5980fa Assign tooltips in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
68b9512da0 Assign keymaps in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
88d80b1c97 Assign config in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
43c959fdeb Assign notifications in Atom environment constructor 2015-10-07 15:24:51 -05:00
Max Brunsfeld
a9531fc4dd Install atom command as 'atom-beta' when using beta version 2015-09-23 14:10:07 -07:00
Thomas Johansen
a2071a7093 🔥 Remove deprecations from global atom module 2015-09-22 10:37:05 -06:00
Nathan Sobo
fb341b094b Add Promise.prototype.done shim
Base on our research, this is the only non-standard Q method people are
really calling. We didn’t check the really obscure stuff, but this
should cover the vast majority of issues.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-09-18 21:26:14 -06:00
Nathan Sobo
c790f987d4 Drop space-pen-extensions from atom.coffee 2015-09-18 20:48:47 -06:00
Nathan Sobo
6fec11780b 🔫 WorkspaceView shim 2015-09-18 20:48:43 -06:00
Max Brunsfeld
6c73f5eda7 Merge branch 'master' of https://github.com/jonathandelgado/atom into jonathandelgado-master 2015-08-25 12:36:58 -07:00
Jonathan Delgado
c292299516 Changed setting disableInitialEmptyEditor to openEmptyEditorOnStart 2015-08-23 07:51:22 -07:00