Commit Graph

25630 Commits

Author SHA1 Message Date
Nathan Sobo
b729a9bb37 Parameterize project on TextEditor 2015-10-07 15:24:59 -05:00
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
ad57dca1f7 Remove dead registerEditor parameter 2015-10-07 15:24:58 -05:00
Nathan Sobo
979963a25c Parameterize notification manager on TextEditor 2015-10-07 15:24:58 -05:00
Nathan Sobo
51abab930d Parameterize config on editor instead of using global atom.config 2015-10-07 15:24:58 -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
77825e9d41 Wait for async service consumption in workspace spec
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-10-07 15:24:56 -05:00
Max Brunsfeld
ed735c115b Fix typo in package manager
Signed-off-by: Nathan Sobo <nathan@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
fd7fbbfea5 Move PaneContainer.deserialize to an instance method
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
4a00d6ba35 Bind cmd/ctrl-w to close window in tests
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
a3e1b34e95 Add reload and toggle dev tools key bindings to test window
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
a87605164b Restore test window position after testing setPosition 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
b649cb48ef Move static Package methods to PackageManager instance 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
57bae5745f Check deprecations on travis 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
716807f619 Remove stray debugger 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
a2563a1b4f Require ipc for use in default commands 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
bcabd0b8a9 ⬆️ donna to fix docs generation errors 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