Commit Graph
1542 Commits
Author SHA1 Message Date
Max Brunsfeld d182182ae2 Avoid ProjectPanel panic when worktree has no root entry
Also, avoid bug where too many UniformList elements were rendered.
2021-09-29 22:08:31 -07:00
Antonio Scandurra 1519e1d45f Maintain active entry Project and render it in ProjectPanel 2021-09-29 17:05:03 +02:00
Antonio Scandurra 67c40eb4be Allow opening entries from project panel 2021-09-29 13:08:27 +02:00
Antonio Scandurra e030917769 Refine project panel styling 2021-09-29 11:32:06 +02:00
Nathan SoboandMax Brunsfeld bd7bf82d18 Load .gitignore files from the Fs object so we can test this with a FakeFs
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-09-28 13:21:19 -06:00
Nathan SoboandMax Brunsfeld dde782a006 Remove top/bottom padding from project panel
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-09-28 12:26:26 -06:00
Nathan SoboandMax Brunsfeld 14bc2c6857 Fix scrolling of project panel
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-09-28 12:26:15 -06:00
Nathan Sobo a3f45c0d3b Merge branch 'worktree-cursor' into project-browser 2021-09-28 12:13:47 -06:00
Nathan SoboandMax Brunsfeld 60799c5a7c 💄
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-09-28 12:03:11 -06:00
b9b08879f2 Get tests passing
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-09-28 11:23:09 -06:00
Antonio Scandurra 366552f3bb Use Bias::Left when traversing by path 2021-09-28 13:42:46 +02:00
Nathan Sobo c3e8a5baa0 Unify all worktree traversal in a Traversal cursor/iterator
This uses our new ability to have a SeekTarget that's distinct from Dimension.
2021-09-27 21:58:22 -06:00
Max BrunsfeldandNathan Sobo ab31ddfc31 Allow seeking SumTree cursor by multiple seek types per dimension
Also, remove the cursor's sum_dimension. Replace it with a
blanket implementation of Dimension for two-element tuples
of dimensions.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-24 18:23:53 -07:00
Max BrunsfeldandNathan Sobo 443a7826bb Start work on expanding and collapsing directories in project panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-24 15:12:49 -07:00
Max Brunsfeld 7eda614c4a Start work on ProjectPanel 2021-09-23 18:14:15 -07:00
Max Brunsfeld d561f50ab1 Extract from Workspace a Project model that stores a window's worktrees 2021-09-23 16:34:06 -07:00
Max Brunsfeld 39fbf7d4d1 Avoid verifying access tokens for out-of-date clients
Replace the 'VerifyToken' middleware with a 'process_auth_header' function
that we call in the '/rpc' handler after checking that the client's protocol
version matches.
2021-09-23 15:32:23 -07:00
Max Brunsfeld d2192fd986 Merge pull request #183 from zed-industries/speed-up-access-token-verification
Speed up login by avoiding unnecessary access token verification
2021-09-23 14:12:34 -07:00
Max Brunsfeld 06efb0968c Speed up login by avoiding unnecessary access token verification 2021-09-23 13:34:53 -07:00
82ec1b73e0 Flush pending selection before performing any action on all selections
Closes #155

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-23 11:20:56 -07:00
Antonio Scandurra 948aa788cb Merge pull request #181 from zed-industries/rpc-compression
Compress RPC messages using zstd
2021-09-23 18:56:36 +02:00
Antonio Scandurra d403281fdc Merge pull request #182 from zed-industries/retry-flaky-wrap-shaped-line-test
Retry `test_wrap_shaped_line` 5 times before reporting a failure
2021-09-23 18:49:13 +02:00
Antonio Scandurra 21daddb60e Retry test_wrap_shaped_line 5 times before reporting a failure
It doesn't seem like there's anything fundamentally broken and it
might just be something weird with CI. Also, there's precedent for
retrying tests depending on fonts, e.g. `test_layout_str`.
2021-09-23 18:32:39 +02:00
Antonio Scandurra 96961a7dfe Bump zrpc version to 1 2021-09-23 18:27:12 +02:00
Antonio Scandurra 5b40dcaeed Remove stray logging 2021-09-23 18:26:42 +02:00
Max BrunsfeldandAntonio Scandurra 8bfee93be4 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 286846cafd 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 e32f1f8b80 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 969bdb2390 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 0aadc94442 Properly initialize response_channels
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-23 17:50:13 +02:00
Antonio ScandurraandNathan Sobo 2352725c58 💄
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-23 17:32:37 +02:00
Antonio Scandurra 742bfe1d5f 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 6b0ed820bf 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 c70b4a99c9 Remove non-determinism from zrpc::tests::peer::test_io_error 2021-09-23 15:55:28 +02:00
Antonio Scandurra 374b05a379 Display warning in titlebar when Zed is out-of-date 2021-09-23 15:36:32 +02:00
Antonio Scandurra 511cbaa2bd Version the zrpc protocol using a X-ZRPC-VERSION header 2021-09-23 15:35:35 +02:00
Antonio Scandurra 9efd8ce323 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 d07ff73999 Bump PathEntry::scan_id when the ignore status of an entry changes 2021-09-23 11:20:53 +02:00
Antonio Scandurra a1ca507498 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 1402f842f7 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 84c7064699 Fix bytes/chars error in Editor::paste
Fixes #156
2021-09-22 14:36:30 -07:00
Antonio Scandurra 796139e4ab Merge pull request #170 from zed-industries/people-panel
People panel
2021-09-22 17:10:50 +02:00
Antonio ScandurraandNathan Sobo 6120ce3747 Move people panel up
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-22 17:09:24 +02:00
Antonio ScandurraandNathan Sobo 23d77e2b9f Refine people panel styling
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-22 17:02:50 +02:00
Antonio ScandurraandNathan Sobo 257744ac36 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 3e65fb4267 Leave joined worktrees when guest loses connection 2021-09-22 15:33:13 +02:00
Antonio Scandurra b47422ae28 Maintain connections correctly when leaving or unsharing worktrees 2021-09-22 15:24:11 +02:00
Antonio Scandurra 78fbd1307a Remove remote worktrees and close their buffers when host unshares 2021-09-22 14:50:32 +02:00
Antonio Scandurra d67227177a Allow leaving worktree while opening a buffer 2021-09-22 12:38:31 +02:00
Max BrunsfeldandNathan Sobo c24d439eb1 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