Michael Bolin
6bd6a8ccdd
Introduce use of beforeEach() in unit test.
2015-02-23 09:59:16 -08:00
Michael Bolin
07039ba47a
Check whether existsSync() is available in GitRepositoryProvider before trying to call it.
2015-02-23 09:30:43 -08:00
Michael Bolin
6d24aaf497
Make sure that GitRepositoryProvider.repositoryForDirectorySync() returns null rather than throws.
...
The UI locks up if this method does not return.
2015-02-21 00:07:40 -08:00
Kevin Sawicki
25befa7368
Update fixture path in compile cache spec
2015-02-20 15:55:41 -08:00
Kevin Sawicki
631c95643d
to5 -> babel
2015-02-20 15:24:21 -08:00
Kevin Sawicki
caff9e0866
Merge pull request #5579 from sebmck/babel
...
Rename 6to5 to Babel
2015-02-20 15:04:26 -08:00
Nathan Sobo
964809373b
Merge branch 'ns-manual-dom-updates'
2015-02-20 15:29:33 -07:00
Nathan Sobo
32d393d26f
Pause polling when updates are requested, but don’t start polling over
...
The blinking cursor was ensuring that we never polled in certain cases.
We need to allow the interval to continue polling at a normal pace, but
just avoid doing any work that could delay the next animation frame.
2015-02-20 09:51:11 -07:00
Michael Bolin
d5abd87643
reword it() message
2015-02-19 21:35:07 -08:00
Michael Bolin
54c7070648
kill assertions about directoryProviders
2015-02-19 21:16:30 -08:00
Michael Bolin
bf9c4132b2
Create a comprehensive test for the new behavior in Project.
2015-02-19 21:02:31 -08:00
Michael Bolin
461cd8c5fe
Introduce atom.directory-provider service.
...
A `Project` will always have a `DefaultDirectoryProvider` that
will be used if there are no other `DirectoryProvider` objects
that can produce a `Directory` for a path.
2015-02-19 20:26:06 -08:00
Michael Bolin
c728ad6d57
Introduce atom.directory-provider service.
...
A `Project` will always have a `DefaultDirectoryProvider` that
will be used if there are no other `DirectoryProvider` objects
that can produce a `Directory` for a path.
2015-02-19 17:57:18 -08:00
Nathan Sobo
1d84d74e50
Centralize text editor DOM interaction through atom.views
...
This ensures that DOM writing, reading, and polling properly interleaves
with DOM interactions from other text editors and any other code that
coordinates via atom.views. Not sure about the location of it though.
2015-02-19 17:14:58 -07:00
Nathan Sobo
de4d995190
Add document coordination methods to ViewRegistry
...
These will assist in updating and reading the DOM in a non-blocking
manner across components.
2015-02-19 17:14:57 -07:00
Nathan Sobo
7033b27207
Make EditorComponent a plain JS object rather than a React component
2015-02-19 17:14:57 -07:00
Nathan Sobo
5ecefe7213
Update scoped config values in presenter when grammar changes
2015-02-19 17:14:56 -07:00
Nathan Sobo
2fba4979f9
Use presenter to determine gutter visibility
2015-02-19 17:14:56 -07:00
Nathan Sobo
156569f19e
Add TextEditorPresenter::state.gutter.visible
2015-02-19 17:14:55 -07:00
Nathan Sobo
bf29a020e1
Use presenter for focused state in EditorComponent
2015-02-19 17:14:55 -07:00
Nathan Sobo
4654bad543
Add .focused to presenter state
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-02-19 17:14:55 -07:00
Nathan Sobo
52a9a76b2a
Use presenter state in InputComponent
2015-02-19 17:14:54 -07:00
Nathan Sobo
8e27d8215a
Store hidden input data in TextEditorPresenter::state
2015-02-19 17:14:54 -07:00
Nathan Sobo
168df987d7
Make GutterComponent a plain JS object instead of a React component
2015-02-19 17:14:53 -07:00
Nathan Sobo
c06e100fae
Make LinesComponent a normal object instead of a React component
...
Also, remove ability to disable hardware acceleration since there’s
no longer a need for it and it complicated this conversion.
2015-02-19 17:14:53 -07:00
Nathan Sobo
883af7a83e
Update cursor nodes manually
2015-02-19 17:14:52 -07:00
Kevin Sawicki
54290e0717
Merge pull request #5643 from atom/ks-deprecations-in-tasks
...
Report deprecations from tasks
2015-02-19 15:14:35 -08:00
Kevin Sawicki
ebefc3b36d
Assert stack trace location
2015-02-19 14:53:15 -08:00
Max Brunsfeld
0674244f5c
Always create new window when opening w/ no path
...
Fixes #5631
2015-02-19 14:35:22 -08:00
Kevin Sawicki
d721cc62e3
Report deprecations in tasks
2015-02-19 14:12:48 -08:00
Max Brunsfeld
cf60855245
Don't destroy repo in ::removePath if it is still needed
2015-02-19 10:28:54 -08:00
Max Brunsfeld
d4298bf077
Add Project::removePath
...
The tree-view needs to be able to remove a path from
the project
2015-02-19 10:02:37 -08:00
Max Brunsfeld
a9adfa6a76
Fix bug in Project::relativize
2015-02-18 16:47:35 -08:00
Max Brunsfeld
8c3988a790
Fix race when starting atom twice in spec
2015-02-18 13:37:06 -08:00
Max Brunsfeld
0eb742566f
Always open w/ one untitled buffer when no paths are given
...
Fixes #5607
2015-02-18 11:17:52 -08:00
Max Brunsfeld
39a225821e
Reuse current window if it has no project path
...
Fixes #5615
2015-02-18 10:29:48 -08:00
Kevin Sawicki
63af713a3f
Guard against detected repository that does not open
...
Closes #5609
2015-02-18 09:16:06 -08:00
Sebastian McKenzie
52506a0df2
Rename 6to5 to Babel
2015-02-18 12:23:58 +11:00
Max Brunsfeld
bcfa4ef608
Restore old behavior for multiple path CLI args
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-17 15:25:50 -08:00
Max Brunsfeld
a857932d6f
Merge pull request #5537 from atom/try-assign-repo-after-provider-is-registered
...
Try to set the Project's repo if it does not have one when a new Reposit...
2015-02-17 10:48:08 -08:00
Michael Bolin
222db8af21
./script/grunt lint and temp.mkdirSync('atom-project') instead of 'tmp'.
2015-02-17 10:14:35 -08:00
Michael Bolin
5805bf9675
Try to set the Project's repo if it does not have one when a new RepositoryProvider is registered.
...
I tested this using my test `HgRepositoryProvider`. Now when I run the following from the
command line:
atom <path-to-directory-with-hg-repository>
And then run the following in the console:
atom.project.getRepositories()
I get an array with an `HgRepository` in it. Previously, I got an empty array because the
`Project`'s paths were set before my `HgRepositoryProvider` was registered.
2015-02-13 22:27:13 -08:00
Nathan Sobo
55a70da3cf
Hide scrollbars on mini editors
...
Fixes #5548
2015-02-13 19:37:27 -07:00
Max Brunsfeld
9517410ef4
Incrementally initialize presenter in random mutation spec
...
Fix resulting failures
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-13 18:05:05 -08:00
Nathan Sobo
7e32dc6e7d
Tempororily disable random presenter spec
2015-02-13 14:33:24 -07:00
Max Brunsfeld
ac78cee584
🔥 ncp; use fs.copySync
2015-02-12 22:14:02 -08:00
Max Brunsfeld
30bd85d8cc
Add some waiting in integration test
...
* Give chromedriver a few millis to start up
* Wait for atom-workspace element to appear before querying
active panes.
2015-02-12 21:18:20 -08:00
Max Brunsfeld
8cc0372432
Avoid unhandled promise rejection warning
2015-02-12 21:18:20 -08:00
Max Brunsfeld
a5b28b2833
Rename test helper method
2015-02-12 21:18:20 -08:00
Max Brunsfeld
476876e479
Restore behavior of reusing focused window for opened files
2015-02-12 21:18:20 -08:00