Commit Graph

272 Commits

Author SHA1 Message Date
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
049321a498 🐛 🔥 Remove double subscription to the same buffer 2016-05-23 18:37:47 +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
joshaber
9732874999 Don't log anymore. 2016-04-26 11:02:01 -04:00
joshaber
9fa669b293 Set the initial path after saving in Project. 2016-04-25 17:02:51 -04:00
Ryan Leckey
152e370a15 Default the options parameter to an empty object 2016-03-09 02:16:10 -08: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
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
Lee Dohm
f826d38d0b Merge pull request #10068 from atom/ld-linkify-promise-docs
📝 Linkify all docs mentions of Promises
2016-01-18 00:23:52 -08:00
Valerii Iatsko
3b8375d2b4 This change gives custom repositoryProviders more priority - this wil allow us to override base git repository implementation 2016-01-06 00:05:58 +01:00
Lee Dohm
13f220d285 📝 Linkify all docs mentions of Promises 2015-12-14 20:30:34 -08:00
Antonio Scandurra
a8a9581ef4 🎨 Use only id 2015-12-07 19:57:30 +01:00
Antonio Scandurra
08f48a8a9d 🔥 2015-12-07 15:20:20 +01:00
Antonio Scandurra
f7a4ef4a84 Deserialize also untitled buffers 2015-12-07 14:47:23 +01:00
abe33
2696f49385 🐛 Fix typo in project deserializer method
Addresses #9598
2015-11-16 10:06:35 +01:00
Nathan Sobo
f9a269ed99 Prompt about checking out head revision in TextEditor, not GitRepository
This allows us not to inject confirm or ApplicationDelegate into
Project, GitRepositoryProvider, and GitRepository.
2015-10-13 19:11:55 -06:00
Antonio Scandurra
3ee0be33d5 🐎 Speed up test suite by disposing Project::emitter 2015-10-12 19:46:12 +02:00
Max Brunsfeld
43d0241685 Reset project in AtomEnvironment::reset 2015-10-08 17:54:43 -07:00
Max Brunsfeld
a9c8640ab1 Stop using directory providers when their providing packages are deactivated 2015-10-08 15:20:13 -07:00
Max Brunsfeld
2af6f995b4 Clean up repository-providers when their providing packages are are deactivated 2015-10-08 13:49:37 -07:00
Antonio Scandurra
a3a6db7f68 Don't use atom.{config,confirm} global in GitRepository 2015-10-07 15:25:05 -05: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
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
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
bbb92753ca Use promises instead of Q in Project
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-09-18 21:24:59 -06:00
Max Brunsfeld
6df058c7f3 Allow adding a root folder that's within another root folder 2015-08-26 15:26:02 -07:00
Ivan Žužak
d32f30780a Massage the message a bit more 2015-06-21 17:48:32 +02:00
Nathan Sobo
04c9567181 Massage message a bit 2015-06-10 01:30:12 +02:00
Nathan Sobo
5c57cb0cfe Show a warning prompt when opening files over 20MB
We still have some trouble on files this large. I want to show a
progress bar, but for now this is better than freezing without any
warning at all.
2015-06-09 00:02:36 +02:00
Machisté N. Quintana
0db3b70177 📝 Update Project::getRepositories() example 2015-06-08 10:59:34 -04:00
Nathan Sobo
de508db9b2 Implement basic large file mode for editor
* Don’t tokenize
* Don’t build metadata to support folds and soft wraps

Remaining issues:

* Max line length is hard coded
* Foldable indicators should be disabled
* Folding via API should be disallowed
2015-06-05 02:25:57 +02:00
Kevin Sawicki
4160a8c239 Merge pull request #6230 from mnquintana/coffeelint-plus
Lint for more styleguide errors
2015-04-08 12:07:23 -07:00
Kevin Sawicki
e71c6b1061 Remove unused require 2015-04-07 14:50:32 -07:00
Machiste Quintana
5d2392ea67 👕 Fix new coffeelint errors 2015-04-06 23:59:54 -04:00
Kevin Sawicki
b98c2a8fbb Only call Directory::off when including deprecated APIs 2015-04-06 11:02:14 -07:00
Kevin Sawicki
5aeffd49ab 🎨 2015-04-03 11:36:13 -07:00
Kevin Sawicki
50d7825200 Always assign paths 2015-04-03 11:29:16 -07:00
Kevin Sawicki
7d592c8b78 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00
Kevin Sawicki
578bce1aaf 🎨 2015-04-03 11:29:15 -07:00
Kevin Sawicki
82c39a5af9 Use lighter Model in cursor, selection, and project 2015-04-03 11:29:15 -07:00
Kevin Sawicki
edf17f1fdb Conditionally include deprecations in Project 2015-04-03 11:29:14 -07:00