Aleksei Gusev
fd9dbb6e87
Normalize disk drive letter in path on Windows
...
Currently atom creates two buffers for the same file if passed
paths use difference case for disk drive letter,
e.g. d:\file.txt and D:\file.txt
2017-02-18 11:32:44 +03:00
Damien Guard
3fd1dbdce3
Clean up temporary files when running specs
2016-12-01 10:48:45 -08:00
Damien Guard
7a5b5ef400
👕
2016-11-29 16:55:14 -08:00
Damien Guard
711d83925e
Project and Window-Event-Handler spec pass on Win32
2016-11-29 16:55:14 -08:00
Indrek Ardel
55f3311c01
Remove unused variables
2016-09-26 20:52:13 +03:00
Max Brunsfeld
09b50f8740
Don't remove non-local directories on Project deserialization
2016-09-15 16:32:14 -07:00
Max Brunsfeld
fe480d8fa4
Do not add project directories that do not exist
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-09-14 13:48:17 -07:00
Andres Suarez
4ca6eaff34
Add atom.project.observeBuffers
...
This makes `onDidAddBuffer` symmetrical with other `onDidAddX` methods and their `observeXs`. It also documents `onDidAddBuffer` and adds tests for it.
Released under CC0.
2016-08-22 18:00:54 -07:00
Antonio Scandurra
95932081b2
Recreate repository if the same project is added after being removed
...
:pear:ed with @nathansobo.
2016-06-20 17:06:50 +02:00
Antonio Scandurra
ef3ab03d28
Emit {will,did}SavePath on ipcMain before/after a buffer is saved
2016-05-23 18:37:26 +02:00
Antonio Scandurra
754cbc2a67
Merge branch 'master' into ns-switch-to-display-layers
...
# Conflicts:
# spec/tokenized-buffer-spec.coffee
2016-04-20 10:55:56 +02:00
Damien Guard
99e716f9ed
Fix specs failures on Windows including paths
2016-04-15 11:25:05 -07:00
Antonio Scandurra
f3c6a77954
💚 Use persistent instead of maintainHistory in specs
2016-04-09 09:30:47 +02:00
Antonio Scandurra
12587073d2
🎨 isQuitting -> isUnloading
2016-03-07 10:52:16 +01:00
Antonio Scandurra
3d15b6e16b
Merge branch 'master' into as-serialize-history-without-snapshots
2016-03-07 10:33:52 +01:00
Antonio Scandurra
046cdddefe
📝
2016-03-04 17:53:14 +01:00
Antonio Scandurra
41c293ef9d
Always pass {isQuitting} in tests
2016-03-04 17:23:19 +01:00
Antonio Scandurra
011fe380e9
Pass markerLayer: false to buffer.serialize when not quitting
2016-03-04 16:57:02 +01:00
Nathan Sobo
47a348f557
Filter out non-directory project paths when deserializing Project
...
Closes #10628
2016-03-01 18:22:43 -07:00
case
8c5c795b35
Remove Duplicate Require Statements and Unify Syntax on '
2016-01-15 14:35:28 -06:00
Max Brunsfeld
a9c8640ab1
Stop using directory providers when their providing packages are deactivated
2015-10-08 15:20:13 -07:00
Max Brunsfeld
b754f1e125
Clean up project specs for custom directory and repository providers
2015-10-08 15:15:02 -07:00
Max Brunsfeld
2af6f995b4
Clean up repository-providers when their providing packages are are deactivated
2015-10-08 13:49:37 -07:00
Max Brunsfeld
9a4cbb9e16
Wait for async service consumption in project spec
2015-10-08 12:40:23 -07: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
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
d997c80d31
Don’t use Serializable mixin in Project
2015-09-22 10:50:11 -06:00
Nathan Sobo
75f6127b90
🔥 Remove deprecations from Project
2015-09-22 10:37:08 -06:00
Nathan Sobo
d2d802e76f
Remove progress spec on Project::open
2015-09-18 21:26:16 -06:00
Max Brunsfeld
6df058c7f3
Allow adding a root folder that's within another root folder
2015-08-26 15:26:02 -07:00
Max Brunsfeld
886c51aed1
Fix flaky project spec caused by async service hub
2015-07-27 10:16:11 -07:00
Max Brunsfeld
d9aa95fb11
Fix specs to deal w/ async ServiceHub::consume
2015-07-23 11:31:09 -07:00
Kevin Sawicki
9b7870d503
Snapshot deprecations around calls to Project::eachBuffer
2015-04-06 16:22:31 -07:00
Kevin Sawicki
50d9fee0d3
Use Project::onDidAddBuffer
2015-04-06 16:21:09 -07:00
Max Brunsfeld
587ebd7538
Fix Project::relativePath w/ URLs
2015-03-13 15:07:56 -07:00
Michael Bolin
a0a4dac571
Fix a bug when a URI is passed to atom.project.removePath().
2015-03-03 21:44:54 -08:00
Mostafa Eweda
b74a688baa
Bare minimum fix to the default directory provider
2015-03-02 14:28:01 -08:00
Max Brunsfeld
69b1a08ef5
Rename .splitPath -> .relativizePath
2015-02-26 08:46:00 -08:00
Max Brunsfeld
b307024218
Add API for getting paths relative to project dirs
2015-02-25 17:15:08 -08: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
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
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
Max Brunsfeld
ac78cee584
🔥 ncp; use fs.copySync
2015-02-12 22:14:02 -08:00
Max Brunsfeld
e0aa8e7f5c
Move ncp dependency to build/package.json
2015-02-12 21:18:20 -08:00