Antonio Scandurra
c192004b06
Don't use atom.{config,styles} global in Package
2015-10-07 15:25:05 -05:00
Nathan Sobo
b7d6dd5e8c
Reset view registry in AtomEnvironment::reset
2015-10-07 15:25:02 -05:00
Antonio Scandurra
464cfd4474
Don't use atom.confirm in Workspace
2015-10-07 15:25:02 -05:00
Antonio Scandurra
cb950b65b0
💚 Adapt specs to pass atom.views in ctors
2015-10-07 15:25:02 -05:00
Antonio Scandurra
df2d73a8df
Don't use atom globals in TokenizedBuffer
2015-10-07 15:25:02 -05:00
Antonio Scandurra
2532a9cd59
Don't use atom globals in StylesElement
2015-10-07 15:25:02 -05:00
Antonio Scandurra
fa06124bb2
Don't use atom globals in PaneElement
2015-10-07 15:25:01 -05:00
Antonio Scandurra
721c5a1679
Don't use atom globals in PaneAxisElement
2015-10-07 15:25:01 -05:00
Antonio Scandurra
b65bfc408e
Don't use atom globals in PanelContainerElement
2015-10-07 15:25:01 -05:00
Antonio Scandurra
112ee01bd9
Don't use atom globals in TextEditorElement
...
...except when the element is instantiated via HTML
2015-10-07 15:25:01 -05:00
Nathan Sobo
e1c9f3332d
Reset commands in AtomEnvironment::reset
2015-10-07 15:25:01 -05:00
Nathan Sobo
c4cfbab408
Reset key bindings in AtomEnvironment::reset
2015-10-07 15:25:00 -05:00
Nathan Sobo
dcb1d8296f
Pass buildAtomEnvironment function to test runner
...
Don’t build an AtomEnvironment or assign it to the atom global until
this function is called by the runner.
2015-10-07 15:25:00 -05:00
Antonio Scandurra
e9cda3ea5c
Don't use atom.views global in PanelElement
2015-10-07 15:25:00 -05:00
Nathan Sobo
122bf72c75
Don’t use atom.packages global in TokenizedBuffer
2015-10-07 15:25:00 -05:00
Nathan Sobo
b2359f44a6
Don’t use atom.grammars global in TokenizedBuffer
2015-10-07 15:25:00 -05:00
Nathan Sobo
4f65452902
Don’t use atom.config global in TokenizedBuffer
2015-10-07 15:24:59 -05:00
Nathan Sobo
dc0709ef9e
Don’t use atom.assert global in DisplayBuffer
2015-10-07 15:24:59 -05:00
Nathan Sobo
edd666b845
Don’t use atom.config global in DisplayBuffer
2015-10-07 15:24:59 -05:00
Nathan Sobo
d15d9be9eb
Construct Workspace with all dependencies in specs
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
51abab930d
Parameterize config on editor instead of using global atom.config
2015-10-07 15:24:58 -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
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
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
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
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
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
0f5483a2ed
Assign config schema on Atom environment construction
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
7d014581cf
Move installation of uncaught error handler to startEditorWindow
2015-10-07 15:24:53 -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
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
5d919c89a1
Fix tooltip manager specs
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
b32d49fab1
Allow running of individual test paths in legacy jasmine runner
2015-10-07 15:24:51 -05:00
Nathan Sobo
7a77ffde43
Log to stdout from terminal runner via ipc
...
For some reason, logging to stderr/stdout from the render process only
works when Atom is run via child_process.spawn, which is how `apm test`
invokes it.
I’m trying to make a convenient interface for running tests directly via
the `atom` command, and this is the only way I could find to long to
stdout from the render process.
I’m also choosing stdout rather than stderr because in this case, you’re
intentionally running the tests and want to see feedback.
2015-10-07 15:24:50 -05:00