Commit Graph

12859 Commits

Author SHA1 Message Date
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
Max Brunsfeld
06a0a26ba0 Include version in socket path on mac and linux 2015-10-06 10:17:29 -07:00
Nathan Sobo
a64d5b18e2 Fix linter errors 2015-10-05 15:48:20 -06:00
Nathan Sobo
ddb08d0c46 Avoid redundant onDidAddPaneItem notifications
Refs #9012
2015-10-05 12:34:49 -06:00
Jeremy Ebneyamin
5b522f70c2 🐛 Fix Windows context menu shortcut
Fix the bug where Open With Atom on Windows machines will fail for paths
containing spaces. Wraps quotes around the path to the Atom executable
in the reg key string.
2015-10-02 00:06:30 -07:00
Nathan Sobo
9ec6bcd9c6 Merge pull request #8931 from ssorallen/texteditor-decoratemarker
Link Gutter::decorateMarker to TextEditor::decorateMarker
2015-10-01 13:30:31 -06:00
Ross Allen
1670357293 Link Gutter::decorateMarker to TextEditor::decorateMarker
`Gutter::decorateMarker` passes its `decorationParams` object through to
`TextEditor::decorateMarker`. Rather than duplicate documentation and
fall out-of-date (as was surfaced in #8920), link the
`TextEditor::decorateMarker` as the canonical docs location.
2015-10-01 10:08:36 -07:00
Max Brunsfeld
2cd4826e62 Merge pull request #8862 from phord/dot-git-files
🐛 Teach Atom to read .git files
2015-10-01 09:32:49 -07:00
Nathan Sobo
1940d4584b Fix typos
/cc @izuzak since I don’t want to open a PR for this
2015-09-30 15:01:52 -06:00
Antonio Scandurra
214f42b2e7 🎨 Unify ::updateScroll... and ::commitPendingScroll... 2015-09-30 12:32:07 +02:00
Antonio Scandurra
c1ef87ac8b 🎨 2015-09-30 10:35:19 +02:00
Antonio Scandurra
0f8041c611 Merge branch 'master' into as-fix-deprecations 2015-09-30 10:23:38 +02:00
Antonio Scandurra
5cb63c8b90 Add feature flag to detect logical display buffer 2015-09-30 10:16:47 +02:00
Antonio Scandurra
cc98cab917 Better rows per page calculation 2015-09-30 09:17:43 +02:00
Antonio Scandurra
5cfc5b67ae Allow listening for TextEditorElement events before attaching it
Fixes atom/wrap-guide#43

/cc: @maxbrunsfeld
2015-09-30 09:09:33 +02:00
Max Brunsfeld
17d962f428 Merge pull request #8983 from atom/mb-use-key-path-helpers
Use key-path-helpers module instead of underscore-plus
2015-09-29 09:55:26 -07:00
Thomas Johansen
6166c81e4c Merge pull request #8972 from atom/tj-fix-deprecated-reference-in-docs
Update reference to deprecated method Project::getRepo
2015-09-29 08:41:15 +02:00
Antonio Scandurra
f877f3695d Revert "Temporarily un-deprecate TextEditor methods"
This reverts commit 8fb4e887df.
2015-09-29 08:25:51 +02:00
Antonio Scandurra
e648d880ed Manually set rows per page in the model 2015-09-29 08:24:28 +02:00
Max Brunsfeld
d55398b77b Use key-path-helpers module instead of underscore-plus 2015-09-28 17:27:15 -07:00
Max Brunsfeld
8fb4e887df Temporarily un-deprecate TextEditor methods 2015-09-28 10:30:01 -07:00
Antonio Scandurra
3ad9bb3d21 Fix typo on TextEditorElement ::getWidth/::getHeight 2015-09-28 14:14:23 +02:00
Thomas Johansen
efda18ae73 📝 Update reference to deprecated method
GitRepository class documentation references deprecated method
Project::getRepo. This resolves that by instead using the replacement
Project::getRepositories.

Although, it seems as if that will be removed in v2.0, so perhaps we should
update this to instead using the async Project::getDirectories method, coupled
with Project::repositoryForDirectory?

/cc @atom/feedback

Fixes #8971
2015-09-28 13:34:36 +02:00
Antonio Scandurra
575d79acce Merge pull request #8604 from lpommers/pressing-esc-on-multiple-cursors-returns-to-original-cursor-or-selection
Pressing esc on multiple cursors returns to original cursor or selection
2015-09-28 10:01:42 +02:00
Wliu
7c0a656036 🔥 Remove hardcoded Makefile tab behavior 2015-09-26 15:54:51 -04:00
Antonio Scandurra
f17767a2bc Merge pull request #8905 from atom/as-display-buffer-logical-coordinates
Use logical coordinates in DisplayBuffer
2015-09-26 18:05:10 +02:00