Commit Graph
25009 Commits
Author SHA1 Message Date
Antonio Scandurra ea88fe6d12 Bump zrpc version to 1 2021-09-23 18:27:12 +02:00
Antonio Scandurra 58cd0846b8 Remove stray logging 2021-09-23 18:26:42 +02:00
Max BrunsfeldandAntonio Scandurra 9d2380fa52 Start work on compressing RPC messages
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-09-23 18:26:42 +02:00
Antonio Scandurra 670f87b74d Merge pull request #179 from zed-industries/rpc-protocol-version
Forbid connections from outdated clients
2021-09-23 18:26:12 +02:00
Antonio ScandurraandNathan Sobo aefcb1f8d1 Create test_app_state with FakeFs instead of RealFs
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-23 18:17:49 +02:00
Antonio Scandurra ffa32e311c Merge pull request #180 from zed-industries/peer-test-io-error-flaky
Fix flaky `zrpc::tests::peer::test_io_error` test
2021-09-23 17:56:40 +02:00
Antonio ScandurraandNathan Sobo 4eb012c3d6 Properly initialize response_channels
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-23 17:50:13 +02:00
Antonio ScandurraandNathan Sobo e13fc58c5b 💄
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-23 17:32:37 +02:00
Antonio Scandurra 370ddd68ff Merge pull request #176 from zed-industries/worktree-share-exclude-ignored
Exclude ignored entries when sharing a worktree
2021-09-23 17:26:41 +02:00
Antonio Scandurra 9853e496af Prevent requests from hanging when shutting down a connection
When closing a connection (either due to an error or simply because the
user wanted to), we will now  *take* `response_channels` as opposed to
clearing them. This ensures that `Peer::request` can't succeed in both
adding the oneshot channel in `response_channels` map _and_ submit the
message onto the `outgoing_tx` channel.

This also streamlines how we close a connection by unifying all the exit
code paths of the IO handling future.
2021-09-23 16:35:40 +02:00
Antonio Scandurra ac87c28d29 Remove non-determinism from zrpc::tests::peer::test_io_error 2021-09-23 15:55:28 +02:00
Antonio Scandurra e0efb0f841 Display warning in titlebar when Zed is out-of-date 2021-09-23 15:36:32 +02:00
Antonio Scandurra eefda8ac3c Version the zrpc protocol using a X-ZRPC-VERSION header 2021-09-23 15:35:35 +02:00
Antonio Scandurra 3cbb260092 Exclude ignored entries when sharing a worktree
This commit also adds a randomized test that exercises building and
applying snapshot updates.
2021-09-23 11:20:53 +02:00
Antonio Scandurra aa58a766f2 Bump PathEntry::scan_id when the ignore status of an entry changes 2021-09-23 11:20:53 +02:00
Antonio Scandurra 24ee8d4b32 Merge pull request #174 from zed-industries/tweak-word-boundaries
Adjust word-boundary motion, treating whitespace more like other editors
2021-09-23 09:09:49 +02:00
Max Brunsfeld a102a459da Adjust word-boundary motion, treating whitespace more like other editors
Also, fix the behavior of 'delete_to_{prev,next}_word_boundary' commands when
there are non-empty selections.
2021-09-22 17:00:57 -07:00
Max Brunsfeld dc5dcc555f Fix bytes/chars error in Editor::paste
Fixes #156
2021-09-22 14:36:30 -07:00
Nate 3e0644d58b update styles 2021-09-22 13:04:14 -04:00
Nate d676ba93d0 Merge branch 'main' into site-v2 2021-09-22 12:14:58 -04:00
Nate 2009abc12e update styles 2021-09-22 11:38:14 -04:00
Nate a3e96781d2 shrink tailwind package size by removing unused core components 2021-09-22 11:38:09 -04:00
Antonio Scandurra 4af0754191 Merge pull request #170 from zed-industries/people-panel
People panel
2021-09-22 17:10:50 +02:00
Antonio ScandurraandNathan Sobo fa3085969b Move people panel up
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-22 17:09:24 +02:00
Antonio ScandurraandNathan Sobo 06e633f0e5 Refine people panel styling
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-22 17:02:50 +02:00
Antonio ScandurraandNathan Sobo 1936a89b1d Fix resolution of extends directive when children are unresolved
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-22 16:04:44 +02:00
Antonio Scandurra b1ee558a78 Leave joined worktrees when guest loses connection 2021-09-22 15:33:13 +02:00
Antonio Scandurra a3b0e59aa4 Maintain connections correctly when leaving or unsharing worktrees 2021-09-22 15:24:11 +02:00
Antonio Scandurra 6143d82ef7 Remove remote worktrees and close their buffers when host unshares 2021-09-22 14:50:32 +02:00
Antonio Scandurra d6249c7410 Allow leaving worktree while opening a buffer 2021-09-22 12:38:31 +02:00
Max BrunsfeldandNathan Sobo f7a39ba0ea Allow clicking on worktrees to share, unshare, join, and leave
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 16:27:57 -07:00
Max BrunsfeldandNathan Sobo af91cb91c3 Add chainable Element methods for common containers
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 15:24:14 -07:00
Max BrunsfeldandNathan Sobo 088f780505 Vertically align avatars with labels in people panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 15:09:31 -07:00
Max Brunsfeld 104fa0cf04 💄 2021-09-21 13:48:34 -07:00
Max BrunsfeldandNathan Sobo 476f16a8f1 Style worktree rows in people panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 13:35:00 -07:00
Max Brunsfeld 4ff4edae44 Ignore empty ZED_IMPERSONATE env var 2021-09-21 13:29:06 -07:00
8dc1f6996d Allow joining worktrees by clicking them in the people panel
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 12:21:03 -07:00
Max BrunsfeldandNathan Sobo 3667ccc420 Rerender list elements when they notify during events
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 12:20:32 -07:00
Antonio ScandurraandNathan Sobo 0d114d8c89 Rename participants to guests in proto
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 18:30:49 +02:00
Antonio ScandurraandNathan Sobo cbe54ad464 Allow size to be specified in ImageStyle
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 18:27:26 +02:00
Antonio ScandurraandNathan Sobo 605f599dcf Style people panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 18:13:02 +02:00
Antonio Scandurra b28ea8c4c5 Merge branch 'main' into people-panel 2021-09-21 17:29:07 +02:00
Antonio ScandurraandNathan Sobo c29ca9ff2b Use more concrete names for Store return values
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-21 17:21:30 +02:00
Antonio Scandurra f2dcc549ca Fix more failing/hanging unit tests 2021-09-21 16:20:20 +02:00
Antonio Scandurra 6489570bf6 Add Server::{state,state_mut} to catch most deadlocks statically 2021-09-21 12:19:52 +02:00
Antonio Scandurra 755b021f6d Remove deadlock and make integration tests pass again 2021-09-21 11:58:31 +02:00
Antonio Scandurra 17a66c2622 Replace returned tuples with named structs in Store 2021-09-21 11:38:50 +02:00
Nathan Sobo fb3150617d Fix remaining compilation errors 2021-09-20 19:44:30 -06:00
Max Brunsfeld 22e8bf0dcc WIP 2021-09-20 18:05:46 -07:00
Nathan Sobo 774e878936 Merge pull request #167 from zed-industries/fix-language-selection
Fix language selection when saving new buffers as a single-file worktree
2021-09-20 17:51:10 -07:00