Commit Graph

13990 Commits

Author SHA1 Message Date
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
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
Nathan Sobo
009dae1717 Default to using the jasmine-test-runner in Atom’s dev resource path 2015-10-07 15:24:51 -05:00
Nathan Sobo
2e54ae1e57 Allow a custom test runner path to be specified in package.json
If the nearest containing package.json of a test path has an
atomTestRunner field, we’ll require the specified file as a test runner
rather than the default jasmine runner.
2015-10-07 15:24:50 -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
Nathan Sobo
e4d64309b7 Allow multiple test paths to be specified as command line arguments 2015-10-07 15:24:50 -05:00
Nathan Sobo
e886d8b253 Rename “bootstrap” scripts
They’re just window initialization scripts, and this new naming makes
that a lot clearer.
2015-10-07 15:24:50 -05:00
Nathan Sobo
8e988e874e Rename exitWhenDone to headless 2015-10-07 15:24:50 -05:00
Antonio Scandurra
8da83022f1 🔥 Remove useless null assignment 2015-10-07 19:51:32 +02:00
Antonio Scandurra
1df9162389 Clear references to scrollbar components 2015-10-07 19:02:45 +02:00
Antonio Scandurra
a62341b548 Avoid capturing this when handling dragging 2015-10-07 19:02:01 +02:00
Antonio Scandurra
a767ca9892 🚱 Dispose ::onDidUpdateMarkers in presenter 2015-10-07 09:54:59 +02:00
Dave Rael
f067fdb7cd Merge branch 'master' into portable-mode
Conflicts:
	src/browser/main.coffee
2015-10-06 14:28:10 -06:00
Max Brunsfeld
06a0a26ba0 Include version in socket path on mac and linux 2015-10-06 10:17:29 -07:00
Antonio Scandurra
428f0db75b 🔥 2015-10-06 11:02:36 +02:00
Antonio Scandurra
e8387e0095 🐎 2015-10-06 11:00:50 +02:00
Antonio Scandurra
61892f932b Use cached text nodes instead of NodeIterator 2015-10-06 10:43:32 +02:00
Antonio Scandurra
175c21f47e Cache built text nodes 2015-10-06 10:35:01 +02:00
Antonio Scandurra
5529645ff3 Recycle highlights 2015-10-06 10:26:49 +02:00
Antonio Scandurra
cc1b42b279 Faster DOM removal 2015-10-06 10:21:13 +02:00
Antonio Scandurra
dede68011f Recycle text nodes in lines 2015-10-06 10:18:05 +02:00
Antonio Scandurra
c1e56322aa Recycle text nodes in line numbers 2015-10-06 10:08:06 +02:00
Antonio Scandurra
c79cc87172 Prepare DOMElementPool to account for text nodes 2015-10-06 10:02:04 +02:00
Antonio Scandurra
b31d3d1a3f Revert "🐎 Faster line number calculation"
This reverts commit e04aef0af3.
2015-10-06 09:16:29 +02:00
Antonio Scandurra
d5dac3459b Merge branch 'master' into as-double-reflow-measurements 2015-10-06 08:36:22 +02:00