Commit Graph

12724 Commits

Author SHA1 Message Date
Nathan Sobo
5b6990f14c Don’t update state in presenter unless prerequisites are defined
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-02-12 19:39:11 -07:00
Kevin Sawicki
dbf384f719 mkdirp -> fs.makeTree 2015-02-12 17:16:07 -08:00
Kevin Sawicki
582b819efa Remove unused guid dependency 2015-02-12 16:30:32 -08:00
Kevin Sawicki
80f82e189e Defer runas require until it is used 2015-02-12 16:18:27 -08:00
Nathan Sobo
a7f2e89b2c Merge pull request #5534 from atom/ns-mb-optimize-auto-indent-on-paste
Optimize auto-indent on paste
2015-02-12 17:06:23 -07:00
Kevin Sawicki
9df0a83597 Add missing 6to5 segment 2015-02-12 15:44:14 -08:00
Nathan Sobo
b2d322f531 🎨 Dry up buildTokenizedLineForRow methods on TokenizedBuffer
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-02-12 16:40:18 -07:00
Nathan Sobo
18826f414c 🎨 Dry up suggested indent methods in LanguageMode
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-02-12 16:33:42 -07:00
Nathan Sobo
fc3d88aada 🐎 Auto-indent lines prior to inserting in buffer
Needs cleanup

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-02-12 16:21:45 -07:00
Kevin Sawicki
375b6edeb4 Ensure registered extension is enumerable 2015-02-12 14:22:46 -08:00
Kevin Sawicki
b2d5a4da4b 🎨 2015-02-12 14:22:46 -08:00
Kevin Sawicki
718886a077 Pass in full path to root cache dir 2015-02-12 14:22:46 -08:00
Kevin Sawicki
20b2be51d9 Add initial compile cache spec 2015-02-12 14:22:46 -08:00
Kevin Sawicki
3f246035da Remove semicolon 2015-02-12 14:22:45 -08:00
Kevin Sawicki
01f059d156 Allow atom home to be passed in 2015-02-12 14:22:45 -08:00
Kevin Sawicki
86cdfaeb94 Set cache directory in tasks 2015-02-12 14:22:45 -08:00
Kevin Sawicki
a5f40e2e7f Call setCacheDirectory on CoffeeCache 2015-02-12 14:22:45 -08:00
Kevin Sawicki
efd8f160da Add helper to warm caches on apm install 2015-02-12 14:22:45 -08:00
Kevin Sawicki
57bb4c322c Add source map caching to tasks 2015-02-12 14:22:45 -08:00
Kevin Sawicki
da3b1a4881 Add root cache check in browser process 2015-02-12 14:22:44 -08:00
Kevin Sawicki
e9eb3d1d34 Remove old coffee cache 2015-02-12 14:22:44 -08:00
Kevin Sawicki
0738d456b5 Use coffee-cash module 2015-02-12 14:22:44 -08:00
Michael Bolin
e5926395ce Move reactCompat option to transform as per 6to5 deprecation warning.
Bumped the version of 6to5-core to `^3.6.0` to ensure `reactCompat` is
available as a transform rather than an option.
2015-02-12 12:41:34 -08:00
Nathan Sobo
e739444800 Add an assertion when line is null in presenter
Refs #5527
2015-02-12 13:23:42 -07:00
Max Brunsfeld
723117a2dc 🎨 fix linter errors 2015-02-12 11:36:16 -08:00
Max Brunsfeld
8339819c7b Revert "Move reactCompat option to transform as per 6to5 deprecation warning."
This reverts commit 698b870491.
2015-02-12 11:33:05 -08:00
Michael Bolin
698b870491 Move reactCompat option to transform as per 6to5 deprecation warning.
Bumped the version of 6to5-core to `^3.6.0` to ensure `reactCompat` is
available as a transform rather than an option.
2015-02-12 11:29:14 -08:00
Max Brunsfeld
aa59c38264 Merge pull request #5491 from bolinfest/repository-provider
Set up the atom.repository-provider service and implement GitRepositoryP...
2015-02-12 11:00:05 -08:00
Nathan Sobo
26a66342dc Merge pull request #5519 from atom/ns-optimize-editor-presenter
Optimize TextEditorPresenter
2015-02-12 11:57:20 -07:00
Michael Bolin
5d788f9a6c Use getPath() instead of getRealPathSync() because other parts of Atom are relying on getPath() for contains(). 2015-02-12 10:45:20 -08:00
Ben Ogle
4a20dc9079 Return items from the opener, rather than using open
This way, options like `split: ‘left’` can be used with the config
URIs.
2015-02-12 10:43:35 -08:00
Nathan Sobo
b3d03d032a 🐎 Read TextEditor::cursors directly to avoid allocation 2015-02-12 11:34:45 -07:00
Nathan Sobo
205d1df7b4 Precompute ::startRow and ::endRow in presenter 2015-02-12 11:34:45 -07:00
Ben Ogle
dcbff35ef5 Handle EEXIST error with a better message
Closes #5518
2015-02-12 09:55:51 -08:00
Nathan Sobo
cc80378b29 Precompute ::scrollTop in presenter 2015-02-12 09:36:44 -07:00
Michael Bolin
5b03cfe878 Added unit test for Project::repositoryForDirectory and fixed the bug
that my unit test caught.
2015-02-11 22:38:02 -08:00
Nathan Sobo
4f5b989cbb Use property instead of non-existent method in OverlayManager 2015-02-11 23:04:49 -07:00
Nathan Sobo
54fcaa6132 Precompute ::scrollHeight and cache ::scrollPastEnd config value 2015-02-11 23:01:08 -07:00
Nathan Sobo
05554d03e4 Precompute ::scrollWidth 2015-02-11 22:53:38 -07:00
Nathan Sobo
fc603aaa0d Precompute ::clientHeight and ::clientWidth 2015-02-11 22:42:32 -07:00
Nathan Sobo
cf958ffeac Don’t cascade computed values unless upstream values change 2015-02-11 22:34:42 -07:00
Nathan Sobo
a3f902104c Precompute ::horizontalScrollbarHeight and ::verticalScrollbarWidth 2015-02-11 22:25:10 -07:00
Nathan Sobo
b6908b18b4 Precompute contentWidth 2015-02-11 22:06:11 -07:00
Nathan Sobo
be691b6a54 Precompute contentHeight and height 2015-02-11 22:04:05 -07:00
Nathan Sobo
6524da6594 🐎 Skip decoration marker changes if caused by text changes
We’re already updating all decorations when text changes anyway, so
marker changes caused by text changes don’t need to perform updates
again.
2015-02-11 19:41:39 -07:00
Kevin Sawicki
baf6795195 Use ATOM_HOME env var in protocol handler
Closes #5501
2015-02-11 12:20:24 -08:00
Nathan Sobo
e4168d70b7 Use computed clientWidth instead of contentFrameWidth as max scrollWidth 2015-02-11 11:47:18 -07:00
Michael Bolin
746fceb4ed s/repositoryPromisesByDirectory/repositoryPromisesByPath/g 2015-02-11 09:20:50 -08:00
Michael Bolin
1191db009e Addressing @nathansobo's feedback. 2015-02-11 09:17:25 -08:00
Nathan Sobo
009d945e1e Destroy TextEditorPresenter when unmounting TextEditorComponent
Fixes atom/find-and-replace#348
2015-02-11 09:02:33 -07:00