Commit Graph
39175 Commits
Author SHA1 Message Date
Max Brunsfeld 836821a494 Enable split debuginfo for faster compiles 2021-04-19 15:00:10 -07:00
Max Brunsfeld 1135ba1db8 Get all worktree tests passing
* Store non-canocalized path on worktree, but canonicalize it for the purpose of processing events
* Simplify rescan unit test
2021-04-19 14:11:55 -07:00
Max Brunsfeld 02ed5983ee 💄 process_events 2021-04-19 13:19:34 -07:00
Max Brunsfeld 9eb4d01229 Worktree: handle files being renamed to overwrite dirs 2021-04-19 13:07:32 -07:00
Max Brunsfeld a94e71c6fa Add an example executable for fsevents 2021-04-19 13:05:34 -07:00
Max Brunsfeld 5c5bbb20e4 💄 Reduce nesting in Snapshot::remove_path 2021-04-19 12:15:24 -07:00
Max BrunsfeldandAntonio Scandurra a3ac38b562 Get worktree randomized test passing
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-04-19 11:59:22 -07:00
Antonio ScandurraandMax Brunsfeld 5333eb892b WIP: Associate entry names with directory children
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-04-19 20:16:54 +02:00
Antonio Scandurra 289e499edd WIP 2021-04-19 19:41:37 +02:00
Antonio Scandurra f75052df62 Enable logging automatically when passing a SEED env variable 2021-04-19 13:01:13 +02:00
Antonio Scandurra a0f1cdd8a2 Don't change parent entries for moves within the same directory 2021-04-19 13:00:13 +02:00
Antonio Scandurra 42dd60a150 Recompute the PathEntry for each file under a re-parented subtree 2021-04-19 12:53:02 +02:00
Antonio Scandurra 4e20c734e8 Start on a randomized test for Worktree 2021-04-19 12:01:33 +02:00
Max Brunsfeld 5f8c212a06 Update entries' filenames when handling move events 2021-04-17 15:22:52 -07:00
Max Brunsfeld b813594b8f Start filling out new structure for processing fs events 2021-04-16 15:22:46 -07:00
Nathan SoboandMax Brunsfeld 026f539426 WIP: Lay down a skeleton for another attempt at rescan
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-04-16 12:53:07 -06:00
Antonio Scandurra 03ab1716e9 WIP 2021-04-16 19:54:46 +02:00
Antonio Scandurra ac230a0116 WIP 2021-04-16 17:22:30 +02:00
Antonio Scandurra b891a62d42 Add simple unit test for SumTree::{edit,get} 2021-04-16 16:26:40 +02:00
Antonio Scandurra e181c4ed5c Avoid unnecessary cloning of items when calling SumTree::edit 2021-04-16 16:16:46 +02:00
Antonio Scandurra 4b479a1ab1 💄 2021-04-16 16:13:28 +02:00
Antonio Scandurra 0b582d243e Parallelize scanning of changed directories 2021-04-16 16:11:55 +02:00
Antonio Scandurra 865537dc64 Start on rescanning Worktree 2021-04-16 15:25:43 +02:00
Nathan Sobo 47de5f3f35 Fix warning 2021-04-15 21:05:18 -06:00
Nathan Sobo 9374400778 Remove unused throttle module 2021-04-15 21:04:30 -06:00
Nathan Sobo a3e02dec88 Replace the old worktree with the new one 2021-04-15 21:02:30 -06:00
Nathan Sobo 7f7320d640 Perform path matching on Worktree snapshots
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.
2021-04-15 20:29:45 -06:00
Nathan Sobo b138562094 Silence warning about binary name 2021-04-15 20:28:20 -06:00
Nathan Sobo 765cb077bd Remove unused timer module 2021-04-15 20:28:10 -06:00
Max BrunsfeldandNathan Sobo f46866568d Fill out some missing parts of the new worktree module
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 17:39:32 -07:00
Max BrunsfeldandNathan Sobo 7acbe1ef1d Make EventStream interface more flexible
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>
2021-04-15 17:38:52 -07:00
Max BrunsfeldandNathan Sobo e619fbca5a Tweak fsevent flags
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 16:46:34 -07:00
Max BrunsfeldandNathan Sobo 1c2692944b Add fsevent crate to workspace
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 16:29:55 -07:00
Max BrunsfeldandAntonio Scandurra 18d099c33a Get file IO test passing on new worktree
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-04-15 11:22:00 -07:00
Antonio ScandurraandNathan Sobo dba22cf47c Re-introduce fuzzy-matching on the new WorkTree implementation
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 18:18:53 +02:00
f37a74e1f3 Ensure top of cursor stack is either empty or a leaf node
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-04-15 18:12:56 +02:00
Antonio Scandurra 1692c10cc3 WIP 2021-04-15 12:10:37 +02:00
Nathan Sobo 7ecd260419 Merge branch 'master' into rescan 2021-04-14 22:26:09 -06:00
Nathan Sobo a273d0cd5b Merge pull request #21 from zed-industries/self-hosted-runner
Try to run our CI on a mac mini in my closet
2021-04-14 22:07:22 -06:00
Nathan Sobo cd244a7e5b Try to run our CI on a mac mini in my closet 2021-04-14 21:56:24 -06:00
Max BrunsfeldandNathan Sobo f281528de5 Improve styling of tabs
* Enforce a min width per tab
* Center the title within tab, regardless of icon
* Render icon over the top of the tab title
* Ensure there is always a fixed minimum amount of filler to the right of all tabs

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-14 15:14:46 -07:00
Max BrunsfeldandNathan Sobo 889ea4cedc Avoid setting constrain min to infinity in Flex layout
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-14 15:14:46 -07:00
Max BrunsfeldandNathan Sobo 77924d6631 Include constraints in element tree JSON debug output
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-14 15:14:46 -07:00
Nathan Sobo e8e6311e2b WIP 2021-04-14 12:38:16 -06:00
Nathan SoboandAntonio Scandurra 2cf86207aa Get worktree out of the way so we can try again
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-04-14 11:09:06 -06:00
Antonio ScandurraandNathan Sobo 8c8e4b1cfd Generalize pasting when number of selections doesn't match clipboard's
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-14 19:02:44 +02:00
Nathan Sobo ed12a81565 Merge pull request #16 from zed-industries/scoped-pool
Replace easy-parallel with scoped-pool for path searches
2021-04-14 09:11:26 -06:00
Nathan SoboandAntonio Scandurra 851a8e6f51 Fix after method rename
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-04-14 09:11:11 -06:00
Nathan SoboandBrooks Swinnerton 4aba99199e Replace easy-parallel with scoped-pool for path searches
The easy-parallel crate spawned new threads on each call, which was resulting in way too many threads.

Co-Authored-By: Brooks Swinnerton <934497+bswinnerton@users.noreply.github.com>
2021-04-14 09:08:52 -06:00
Nathan Sobo 942c13a824 Merge pull request #20 from zed-industries/async-prompt-for-paths
Prompt for paths asynchronously to avoid double borrow
2021-04-14 09:06:14 -06:00