Commit log

265ad90 Stop processing events if root path is deleted

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld and Antonio Scandurra created

85f8537 Worktree: silence log message when dir is overwritten by file

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld and Antonio Scandurra created

5cbbf62 WIP

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Nathan Sobo , Max Brunsfeld , and Antonio Scandurra created

9899614 Remove task_done condvar which supported finish_pending_tasks

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Nathan Sobo , Max Brunsfeld , and Antonio Scandurra created

1a8e909 Ensure we remove broadcast channels after all conditions resolve

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Nathan Sobo , Max Brunsfeld , and Antonio Scandurra created

dcc2bdf Panic when awaiting conditions on dropped entities

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Nathan Sobo , Max Brunsfeld , and Antonio Scandurra created

ddd746b Use `env_logger` instead of `simplelog` in tests

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

37444ac Time out `condition` after 200ms and add basic unit tests for it

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

cd7dccd Replace remaining usages of `finish_pending_tasks` with `condition`

Antonio Scandurra created

ebb7124 Use `scan_complete` and the new `ModelHandle::condition` test method

Antonio Scandurra created

d11d548 Rework `Worktree::scan_complete` to use a watch

Antonio Scandurra created

a4c1fe5 WIP: Add a condition method to model and view handles for use in tests

Click to expand commit body
It returns a future that resolves when the provided predicate returns true. The predicate is called any time the handle's targeted entity calls notify.

Still need to add a timeout and completely remove finsih_pending_tasks.

Nathan Sobo created

69a43af Add a method for waiting until a worktree's current scan is complete

Click to expand commit body
Start removing usages of finish_pending_tasks in tests

Max Brunsfeld created

8fb79a3 Enable split debuginfo for faster compiles

Max Brunsfeld created

f27b01f Get all worktree tests passing

Click to expand commit body
* Store non-canocalized path on worktree, but canonicalize it for the purpose of processing events
* Simplify rescan unit test

Max Brunsfeld created

f06164a :lipstick: process_events

Max Brunsfeld created

e44a59d Worktree: handle files being renamed to overwrite dirs

Max Brunsfeld created

47f0b94 Add an example executable for fsevents

Max Brunsfeld created

0fd3f55 :lipstick: Reduce nesting in Snapshot::remove_path

Max Brunsfeld created

3e93fb9 Get worktree randomized test passing

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld and Antonio Scandurra created

122926d WIP: Associate entry names with directory children

Click to expand commit body
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra and Max Brunsfeld created

f8f6a85 WIP

Antonio Scandurra created

06858c0 Enable logging automatically when passing a SEED env variable

Antonio Scandurra created

2c72f9c Don't change parent entries for moves within the same directory

Antonio Scandurra created

f29c429 Recompute the PathEntry for each file under a re-parented subtree

Antonio Scandurra created

ca62d01 Start on a randomized test for `Worktree`

Antonio Scandurra created

17f2df3 Update entries' filenames when handling move events

Max Brunsfeld created

5b05e57 Start filling out new structure for processing fs events

Max Brunsfeld created

6a54972 WIP: Lay down a skeleton for another attempt at rescan

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

e19a56c WIP

Antonio Scandurra created

ce5fbbb WIP

Antonio Scandurra created

b68b0fc Add simple unit test for `SumTree::{edit,get}`

Antonio Scandurra created

457d945 Avoid unnecessary cloning of items when calling `SumTree::edit`

Antonio Scandurra created

09c4d65 :lipstick:

Antonio Scandurra created

fbd5fbd Parallelize scanning of changed directories

Antonio Scandurra created

fd12117 Start on rescanning Worktree

Antonio Scandurra created

b55acb6 Fix warning

Nathan Sobo created

af47ef9 Remove unused throttle module

Nathan Sobo created

358fad8 Replace the old worktree with the new one

Nathan Sobo created

5648c67 Perform path matching on Worktree snapshots

Click to expand commit body
We're going to need something that can be moved to a background thread. Worktree used to be easy to clone, but that's no longer really true. Instead we can take a snapshot.

Nathan Sobo created

e55abc4 Silence warning about binary name

Nathan Sobo created

0caf908 Remove unused timer module

Nathan Sobo created

3fa4e5a Fill out some missing parts of the new worktree module

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

4878bf8 Make EventStream interface more flexible

Click to expand commit body
Take a callback instead of an mpsc Sender. The
run method blocks and invokes the callback for
each batch of events. The caller controls the
threading. The callback can return false to terminate
the event stream.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

6d3dc85 Tweak fsevent flags

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

fbaab12 Add fsevent crate to workspace

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

497dedb Get file IO test passing on new worktree

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld and Antonio Scandurra created

cefc753 Re-introduce fuzzy-matching on the new `WorkTree` implementation

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

070069d Ensure top of cursor stack is either empty or a leaf node

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created

0bbff09 WIP

Antonio Scandurra created