Max Brunsfeld
|
561cabbba2
|
Use FakeFs in all integration tests
|
2021-07-13 12:48:00 -07:00 |
|
Nathan Sobo
|
82569a031f
|
Fix race condition in integration test
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
|
2021-07-13 13:24:48 -06:00 |
|
Nathan Sobo
|
411e7df931
|
Move Fs trait into its own module
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
|
2021-07-13 12:52:42 -06:00 |
|
Antonio Scandurra
|
2e645bcf6a
|
Use an unbounded channel for waking executor::Deterministic
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2021-07-13 18:46:48 +02:00 |
|
Antonio Scandurra
|
391ad489ff
|
Rename zed-rpc to zrpc
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2021-07-13 18:22:00 +02:00 |
|
Antonio Scandurra
|
c4e37dc47c
|
Use the same background executor for spawning CPU intensive tasks
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2021-07-13 18:13:25 +02:00 |
|
Antonio Scandurra
|
6abac39eaa
|
Remove stray logging statements
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-13 17:47:54 +02:00 |
|
Antonio Scandurra
|
7ad2071a51
|
Fix tests that were not aware of Worktree::open_local being async
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-13 17:27:40 +02:00 |
|
Antonio Scandurra
|
2ecdc65f38
|
WIP
|
2021-07-13 16:36:35 +02:00 |
|
Antonio Scandurra
|
f836a25500
|
Use an executor::Background in AppContext::thread_pool
|
2021-07-13 14:06:38 +02:00 |
|
Antonio Scandurra
|
f58ef25fc5
|
Don't create a real background executor when Fs is fake
|
2021-07-13 12:32:10 +02:00 |
|
Antonio Scandurra
|
68f747d6df
|
Allow printing a trace of a run of the executor
|
2021-07-13 12:31:36 +02:00 |
|
Antonio Scandurra
|
9e1f72bfa9
|
Use an unfair lock to ensure tests are deterministic
Also avoid using `smol::block_on` as it interacts with their `Reactor`.
|
2021-07-13 09:45:59 +02:00 |
|
Max Brunsfeld
|
2a90347b82
|
Store an Fs on Workspace, pass it to each Worktree
Push test-only worktree behavior down into the Fs,
via a `watch` method which provides fs events.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-12 17:26:14 -07:00 |
|
Nathan Sobo
|
86ca442fbe
|
Fix CSS purge path
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
|
2021-07-12 14:50:51 -06:00 |
|
Nathan Sobo
|
9a6c4a1718
|
Pass arguments to cargo run in script/server
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
|
2021-07-12 14:50:39 -06:00 |
|
Nathan Sobo
|
1537500fcb
|
Include contents of the zed-server repo
We're going full monorepo.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
|
2021-07-12 14:14:39 -06:00 |
|
Antonio Scandurra
|
34abda3a04
|
🔥 Remove stray logging statements
|
2021-07-12 17:52:16 +02:00 |
|
Antonio Scandurra
|
59d61d33cb
|
Allow worktrees to be joined with no open window
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-12 17:44:53 +02:00 |
|
Antonio Scandurra
|
58bae3a9a7
|
Ensure root view is always rendered when opening a window
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-12 17:44:10 +02:00 |
|
Antonio Scandurra
|
a661b43e75
|
Pass AppState to workspace:join_worktree
|
2021-07-12 17:02:22 +02:00 |
|
Antonio Scandurra
|
ccff27a157
|
Ignore whitespaces surrounding a shared worktree's URL
|
2021-07-12 14:16:36 +02:00 |
|
Antonio Scandurra
|
0f399c6a01
|
Don't lose operations for buffers that are being opened
|
2021-07-12 11:59:56 +02:00 |
|
Antonio Scandurra
|
1813a3cc91
|
Allow resetting executor::Deterministic 's RNG
|
2021-07-11 11:26:06 +02:00 |
|
Antonio Scandurra
|
bd68d83519
|
Avoid unnecessary Result in returned message handler future
|
2021-07-10 12:33:54 +02:00 |
|
Antonio Scandurra
|
4f752a4144
|
Emit event when performing a rename in InMemoryFs
|
2021-07-10 08:48:49 +02:00 |
|
Nathan Sobo
|
4aab70d7fb
|
Remove authentication at the RPC layer
This means we can remove IOHandler and return a simple future that is Send
|
2021-07-09 21:57:10 -06:00 |
|
Nathan Sobo
|
89ef4d760d
|
Send an Authorization HTTP header when connecting web sockets
|
2021-07-09 21:27:33 -06:00 |
|
Nathan Sobo
|
4ffd29bd81
|
Pass AppState as action arg to workspace:share_worktree
|
2021-07-09 21:26:54 -06:00 |
|
Max Brunsfeld
|
eeebc761b6
|
Restructure Peer to handle connections' messages in order
|
2021-07-09 16:27:34 -07:00 |
|
Antonio Scandurra
|
b7fae693f9
|
Send buffer operations in the order they occur
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2021-07-09 19:07:04 +02:00 |
|
Antonio Scandurra
|
ad3dcfed10
|
Use the Fs trait for refreshing buffers
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2021-07-09 19:02:27 +02:00 |
|
Antonio Scandurra
|
4f4233e00b
|
Schedule foreground-spawned futures sequentially
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-09 18:55:42 +02:00 |
|
Antonio Scandurra
|
9412a7ae07
|
Remove non-determinism caused by polling snapshots via a timer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
|
2021-07-09 18:42:25 +02:00 |
|
Antonio Scandurra
|
13c56cf6ce
|
WIP
|
2021-07-09 18:32:57 +02:00 |
|
Antonio Scandurra
|
0e19b061d4
|
Fix warnings
|
2021-07-09 17:35:57 +02:00 |
|
Antonio Scandurra
|
3d799fe8e7
|
Implement InMemoryFs::rename
|
2021-07-09 17:02:42 +02:00 |
|
Antonio Scandurra
|
63e76e426a
|
Implement Fs::child_entries for InMemoryFs
|
2021-07-09 16:41:05 +02:00 |
|
Antonio Scandurra
|
b96578f471
|
Extract Fs::child_entries method to avoid sync I/O in BackgroundScanner
|
2021-07-09 16:15:24 +02:00 |
|
Antonio Scandurra
|
6957027341
|
Replace crossbeam_channel with an async smol::channel
|
2021-07-09 15:06:51 +02:00 |
|
Antonio Scandurra
|
102026f3c7
|
Implement a scoped pool on executor::Background
|
2021-07-09 15:00:51 +02:00 |
|
Antonio Scandurra
|
d5361299ad
|
Start on refactoring BackgroundScanner to be generic over fs
|
2021-07-09 14:20:42 +02:00 |
|
Antonio Scandurra
|
2fa63a3a50
|
Start on in-memory fs
|
2021-07-09 14:20:33 +02:00 |
|
Antonio Scandurra
|
4dae17a4cf
|
Extract an Fs trait in Worktree
|
2021-07-09 10:58:07 +02:00 |
|
Max Brunsfeld
|
60ef74a18f
|
Use select_biased! in Peer to avoid non-determinism
|
2021-07-08 22:09:02 -07:00 |
|
Max Brunsfeld
|
b2aa961b4f
|
Allow rpc client to connect to an in-memory stream
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-08 17:38:54 -07:00 |
|
Max Brunsfeld
|
8b58c165a7
|
Re-export zed-rpc's test support items from zed's test support
|
2021-07-08 17:38:54 -07:00 |
|
Max Brunsfeld
|
2965fce70d
|
Avoid panic when spawn is called after run exits in deterministic executor
|
2021-07-08 17:38:54 -07:00 |
|
Max Brunsfeld
|
9bfa5b62f2
|
Add a 'seed' parameter to gpui::test macro
This lets you control the starting seed
|
2021-07-08 17:38:54 -07:00 |
|
Max Brunsfeld
|
140c8833fe
|
Start work on a deterministic executor for tests
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
|
2021-07-08 13:39:24 -07:00 |
|