Commit Graph

32589 Commits

Author SHA1 Message Date
Ash Wilson
0c5674a56c Split subtrees into child watchers on parent watcher removal 2017-08-01 15:08:06 -04:00
Ash Wilson
a5f217fd51 WIP work on rewatching child directories 2017-08-01 15:08:05 -04:00
Ash Wilson
60e6da9097 Weird-ass concurrent mkdir() error 2017-08-01 15:08:05 -04:00
Ash Wilson
c2810b626c Propagate errors to subscribers with an onDidError callback 2017-08-01 15:08:05 -04:00
Ash Wilson
f75aa1ae03 Use onWillStop() instead of onDidStop()
This will prevent new Watchers from attaching to NativeWatchers that are
in the process of stopping.
2017-08-01 15:08:05 -04:00
Ash Wilson
b34a9d6972 Only resolve the waitForChanges promise once 2017-08-01 15:08:05 -04:00
Ash Wilson
6d17fc880d Opportunistic native watcher stopping 2017-08-01 15:08:05 -04:00
Ash Wilson
7ec79a00fc Set running = false before the asynchronous stop operation 2017-08-01 15:08:05 -04:00
Ash Wilson
80a9126fdb Start NativeWatchers lazily and stop them opportunistically 2017-08-01 15:08:05 -04:00
Ash Wilson
9c8ed35b26 Provide native watcher creation function to the NativeWatcherRegistry constructor 2017-08-01 15:08:05 -04:00
Ash Wilson
6e6c0a5ef9 Use getStartPromise() in specs 2017-08-01 15:08:05 -04:00
Ash Wilson
53dcc00bfc Don't cleanup temp between runs to prevent reused directory names 2017-08-01 15:08:05 -04:00
Ash Wilson
246e87b660 👕 keep standard happy 2017-08-01 15:08:04 -04:00
Ash Wilson
d858e37058 Support pending specs with an empty body 2017-08-01 15:08:04 -04:00
Ash Wilson
c8882ca92b Start and stop NativeWatchers automatically using onDidChange subs 2017-08-01 15:08:04 -04:00
Ash Wilson
4194e7f3b5 Remove stopped watcher nodes with the power of RECURSION 2017-08-01 15:08:04 -04:00
Ash Wilson
f3a4c74158 🔥 console.log 2017-08-01 15:08:04 -04:00
Ash Wilson
0325a77d59 Test NativeWatcher removal 2017-08-01 15:08:04 -04:00
Ash Wilson
882095eea6 Test child watcher adoption 2017-08-01 15:08:04 -04:00
Ash Wilson
be681d1324 Use a private utility function to wait for all native watchers to stop 2017-08-01 15:08:04 -04:00
Ash Wilson
12c961c8b9 Maintain a Set of living NativeWatcher instances 2017-08-01 15:08:04 -04:00
Ash Wilson
9f518736e1 Track the current NativeWatcher assigned to a Watcher 2017-08-01 15:08:04 -04:00
Ash Wilson
8d86acf19c Don't report errors after stop 2017-08-01 15:08:03 -04:00
Ash Wilson
baf71492a2 .dispose() all subscribers on a NativeWatcher 2017-08-01 15:08:03 -04:00
Ash Wilson
21e381033c Start native watchers when attached 2017-08-01 15:08:03 -04:00
Ash Wilson
39085ce3dc First few FileSystemManager specs 2017-08-01 15:08:03 -04:00
Ash Wilson
e4c48a5c8c 👕 for FileSystemManager 2017-08-01 15:08:03 -04:00
Ash Wilson
9c9625eb76 Helpers to promisify functions in specs 2017-08-01 15:08:03 -04:00
Ash Wilson
bd76773412 👕 lint lint lint 2017-08-01 15:08:03 -04:00
Ash Wilson
366ee19bd9 👕 make the linter happy 2017-08-01 15:08:03 -04:00
Ash Wilson
908e5ad1e9 FileSystemManager that hands out Watchers to subscribe to filesystem events 2017-08-01 15:08:03 -04:00
Ash Wilson
a1ccd49b8e Use a tree-backed registry to deduplicate and consolidate native watchers 2017-08-01 15:08:03 -04:00
Ash Wilson
73ac74cce9 Use nsfw for file watching 2017-08-01 15:07:59 -04:00
Michelle Tilley
008ea39650 Merge pull request #15137 from atom/mkt-updoot-github-from-0-3-8
⬆ github@0.3.9-0
2017-08-01 10:40:21 -07:00
Jason Rudolph
ea5e6d51f8 Merge pull request #15135 from atom/js-ns-fix-gutter-layout
Fix gutter decoration regression in v1.19 beta
2017-08-01 13:39:52 -04:00
Max Brunsfeld
967c2a3440 Merge pull request #15121 from atom/mb-fix-spurious-text-buffer-conflict-events
Upgrade text-buffer to fix spurious conflict and reload events
2017-08-01 09:55:27 -07:00
Max Brunsfeld
7295e5de6f ⬆️ text-buffer 2017-08-01 09:53:03 -07:00
Michelle Tilley
cc753be2ca ⬆️ github@0.3.9-0 2017-08-01 09:20:52 -07:00
Max Brunsfeld
dbfc792df0 ⬆️ text-buffer (prerelease) 2017-07-31 16:28:37 -07:00
Max Brunsfeld
fe52743b82 ⬆️ text-buffer (prerelease) 2017-07-31 15:24:13 -07:00
Bryant Ung
1c7aa39996 ⬇️ bracket-matcher
reverting bracket-matcher due to issue https://github.com/atom/bracket-matcher/issues/303
2017-07-31 14:39:18 -07:00
Jason Rudolph
b72d8078dc Use relative positioning for gutters 2017-07-31 16:41:50 -04:00
Nathan Sobo
2cd1a08b65 Merge pull request #15108 from atom/ns-fix-spec-helper
Remove duplicate mocking
2017-07-31 13:35:27 -06:00
Nathan Sobo
f33bca4fd9 Try always mocking Date.now in our global spec helper 2017-07-31 11:21:14 -06:00
Nathan Sobo
899e9d3f8a Explicitly request to use mock clock to get Date.now mocking 2017-07-31 11:21:14 -06:00
Nathan Sobo
4254825f3c Remove duplicate mocking
Since this was newly introduced, let's only set it up when clock mocking
is specifically requested to minimize breakage. We really need to
deprecate the global spec helper someday. It's bad news.

/cc @hansonw
2017-07-31 11:21:14 -06:00
Max Brunsfeld
bae01b6594 ⬆️ text-buffer (prerelease) 2017-07-28 16:26:39 -07:00
Max Brunsfeld
a38b438338 ⬆️ text-buffer 2017-07-27 08:48:06 -07:00
Max Brunsfeld
73fa8d00aa Merge pull request #15082 from t9md/fix-dangerous-bind-in-pane.coffee
Should not use bind for map's callback in pane.coffee.
2017-07-24 13:56:21 -07:00
t9md
d9828cc85e should not use bind for map's callback.
map pass item index as 2nd arg, so bind is not appropriate for the
function which take 2nd arg.
2017-07-25 03:49:18 +09:00