Commit Graph
1655 Commits
Author SHA1 Message Date
Nathan SoboandMax Brunsfeld 2ebd2723de Extract worktree, rpc_client, and util crates
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-04 13:07:35 -06:00
cc87ba7829 Move LanguageRegistry into buffer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-10-04 19:59:03 +02:00
Antonio Scandurra c91d096528 Pull out buffer into its own crate 2021-10-04 16:50:12 +02:00
Antonio Scandurra 50a6fc5648 Extract a clock subcrate for logical clocks 2021-10-04 14:34:02 +02:00
Nathan Sobo 2cc25216ae 💄 2021-10-02 19:46:07 -06:00
Nathan Sobo 5822c4cf40 Introduce ProjectPath and ProjectEntry structs
These replace tuples of (usize, Arc<Path>) and (usize, usize) respectively.
2021-10-02 19:39:04 -06:00
Nathan Sobo 8df24cc1fe Introduce a File trait object to buffer
This will remove the dependency of buffer on `worktree::File`
2021-10-02 19:01:29 -06:00
Nathan SoboandMax Brunsfeld ab06ed1c55 Remove File::select_language
We want to make File a trait object defined in the buffer crate to decouple buffer from worktree, and this method is in the way.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 16:56:28 -07:00
Nathan SoboandMax Brunsfeld b3089e9f5b Select the language in Editor::save_as instead of Buffer::did_save
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 17:38:08 -06:00
Nathan SoboandMax Brunsfeld ea4b9f7f0a Move Buffer::save_as to Editor
This removes buffer's dependency on Worktree, preparing the path for us to pull it into its own crate.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 17:32:22 -06:00
Nathan SoboandMax Brunsfeld 76bd0d590c Extract fuzzy module to its own crate
We still have a fuzzy module in the zed crate with some app-specific logic.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 17:08:19 -06:00
Nathan SoboandMax Brunsfeld f93b0b1035 Fix warnings
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 16:45:24 -06:00
Nathan SoboandMax Brunsfeld 565f64b931 Move fuzzy::match_paths to Project::match_paths
This prepares the way to extract the rest of fuzzy to its own crate.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 16:44:08 -06:00
Nathan SoboandMax Brunsfeld 1e59e9f3a8 Extract sum_tree to its own crate
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 15:55:21 -06:00
Nathan Sobo 755c9b307a Merge pull request #194 from zed-industries/investigate-compile-time
Explore some ways to reduce Zed's compile time
2021-10-01 15:35:51 -06:00
Nathan SoboandMax Brunsfeld 1e2a34c549 Reduce generic instantiations in read/update_view/model
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 15:23:35 -06:00
Max BrunsfeldandNathan Sobo 0d09298c6a Avoid spawn_local instantiations due to different scheduling closure
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-01 12:00:37 -07:00
Max BrunsfeldandNathan Sobo d2f5a02a72 Box future outputs before passing them to async_task
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-01 11:13:17 -07:00
Max BrunsfeldandNathan Sobo 7553ff3051 Box futures before passing them to async_task APIs
This reduces the number of copies of each async_task function that get compiled.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-01 10:07:27 -07:00
Max Brunsfeld a43f1c815b Remove type parameters from Cursor::seek_internal
Instead, use trait objects for the target dimension and aggregation
2021-09-30 17:17:33 -07:00
Max Brunsfeld 3ee228d2e8 Use published prost crates
The previous version of prost didn't build on nightly rust.
2021-09-30 15:37:04 -07:00
Max Brunsfeld 9558800bde Merge pull request #193 from zed-industries/project-browser
Add the project panel
2021-09-30 15:35:47 -07:00
Max Brunsfeld 0547b1ce76 Add key bindings to toggle the project panel
- Use `cmd-1` to open the project panel and toggle focus between it and the workspace center.
- Use `cmd-shift-1` to open or close the project panel.
2021-09-30 15:26:14 -07:00
Max Brunsfeld 0b317ee201 Fix ProjectPanel test failure 2021-09-30 15:02:27 -07:00
Max BrunsfeldandNathan Sobo 8e88c33ba7 Style the active entry in the project panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 14:16:28 -07:00
Max BrunsfeldandNathan Sobo 6a40f71d7b Avoid duplicate notifications for the same entity in the same effect cycle
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 14:06:09 -07:00
Max BrunsfeldandNathan Sobo da9dd739af Don't autoscroll the project panel when worktree changes
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 13:44:07 -07:00
Max BrunsfeldandNathan Sobo a093f461bc Vertically align root folder in project panel with tabs and sidebar icons
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 13:30:24 -07:00
Max BrunsfeldandNathan Sobo 34bdf808e5 Add 'overlay' property to border
For containers, this causes the border to be drawn on top of the child element.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 13:29:26 -07:00
Max BrunsfeldandNathan Sobo 9cd5c8a3d1 Avoid rendering artifacts when label text is shaped with a non-integer width
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 13:28:45 -07:00
Max BrunsfeldandNathan Sobo a159ce76e4 Add disclosure arrows to the project panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-30 10:24:52 -07:00
Nathan Sobo 5a8e4b172c Scope the left and right bindings in the project panel 2021-09-30 10:50:58 -06:00
Antonio Scandurra 8cda3e49ba Open buffer when trying to expand a file 2021-09-30 16:19:24 +02:00
Antonio Scandurra ca5340c48b 💄 2021-09-30 16:00:01 +02:00
Antonio Scandurra c5b68cae90 Rename active entry to selected entry 2021-09-30 14:41:12 +02:00
Antonio Scandurra b1a5268b9e Allow expanding/collapsing active entry using the keyboard 2021-09-30 14:38:21 +02:00
Antonio Scandurra c94ba110f6 Allow selecting prev and next entries via the keyboard 2021-09-30 14:13:07 +02:00
Antonio Scandurra 7d130a1787 Fix panic when rendering multiple worktrees in project panel 2021-09-30 10:39:15 +02:00
Antonio Scandurra 549a3e69c4 Merge branch 'main' into project-browser 2021-09-30 10:01:48 +02:00
Max Brunsfeld a5cf192a66 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
Max Brunsfeld 37bab6d4cb Merge pull request #192 from zed-industries/perfmon
Configure production containers to allow performance monitoring
2021-09-29 16:28:49 -07:00
Max Brunsfeld 243ac667d8 Remove stray logging 2021-09-29 16:04:14 -07:00
Max Brunsfeld b1fd66fdcd Merge pull request #190 from zed-industries/worktree-cursor
Unify all worktree traversal into a single cursor/iterator
2021-09-29 16:02:19 -07:00
Max BrunsfeldandNathan Sobo ce45c69cea Add kube-shell script, for running shell commands in a deployed container
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-29 14:55:16 -07:00
Max BrunsfeldandNathan Sobo 05fdf666f9 Fix errors in deploy script
Also, allow deploying to staging with uncommitted changes.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-29 14:53:52 -07:00
Max BrunsfeldandNathan Sobo acef50fa6e Add SYS_ADMIN capability to the server container
This will let us run perf(1) on the zed-server to debug
any performance problems we encounter in production.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-29 14:53:20 -07:00
Max BrunsfeldandNathan Sobo 75b160edac Generalize deploy scripts to work w/ both production and staging
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-29 14:10:40 -07:00
Max BrunsfeldandAntonio Scandurra 3c46dba53c Avoid fetching GH releases in home route
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-09-29 14:10:40 -07:00
1ab085e741 Remove session and errors middleware from static route
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-29 14:10:40 -07:00
Nate 5069aa68d5 Revert "Update link hrefs to absolute urls"
This reverts commit 933ca9c1da.
2021-09-29 12:12:35 -04:00