Max Brunsfeld
2fcb90652b
Fix path to zed crate in script/bundle
2021-10-05 10:46:59 -07:00
Antonio Scandurra
f70e3878b6
Flip the dependency between editor and theme
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-10-05 19:21:13 +02:00
Antonio Scandurra
f09798c4a7
Use the same test::run_test
function for async gpui::test
s
2021-10-05 18:04:22 +02:00
Antonio Scandurra
9c7ef39da6
Minimize code generation for synchronous gpui::test
macro
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-05 17:47:46 +02:00
Antonio Scandurra
7a05461c50
Avoid loading Rust grammar in zed
tests
2021-10-05 15:43:57 +02:00
Antonio Scandurra
2280c75103
Extract theme_selector
into its own crate
2021-10-05 15:38:25 +02:00
Antonio Scandurra
47b29a5f21
Extract people_panel
into its own crate
2021-10-05 14:36:38 +02:00
Antonio Scandurra
cd6378e848
Extract file_finder
into its own crate
2021-10-05 14:30:56 +02:00
Antonio Scandurra
1ec0afb2d1
Extract chat_panel
into its own crate
2021-10-05 14:23:45 +02:00
Antonio Scandurra
d04a11405c
Extract project_panel
into its own crate
2021-10-05 14:19:57 +02:00
Antonio Scandurra
499616d769
Move workspace
module into its own crate
2021-10-05 13:49:10 +02:00
Antonio Scandurra
2087c4731f
Extract theme
into its own crate
2021-10-05 11:14:30 +02:00
Antonio Scandurra
0022c6b828
Move settings::test
helper into zed::test
2021-10-05 11:00:46 +02:00
Antonio Scandurra
5105596918
Move sidebar-specific code out of Workspace
2021-10-05 10:59:20 +02:00
Antonio Scandurra
36594ecf1d
Use edition = 2018 instead of 2021 for the editor crate
2021-10-05 10:16:13 +02:00
Max Brunsfeld
bbb27b9654
Move ChannelList, UserStore into client crate
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-04 17:30:11 -07:00
Max Brunsfeld
94209d2b6d
Rename rpc_client -> client
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-04 17:14:21 -07:00
Max Brunsfeld
2f0212ee98
Rename worktree crate to project, pull in Project
...
Also, move the high-level fuzzy mathcing functions in
zed::fuzzy into the fuzzy crate so that project can
use them.
This required defining a 'PathMatchCandidateSet' trait
to avoid a circular dependency from fuzzy to worktree.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-04 16:45:05 -07:00
Max Brunsfeld
748598e419
Improve logging when avatar request fails
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-04 15:47:18 -07:00
Max Brunsfeld
75cf2488db
List path dependencies first in all Cargo.toml files
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-04 15:36:52 -07:00
Max Brunsfeld
1d97f08901
Move editor into its own crate
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-10-04 15:23:10 -07:00
Nathan Sobo
d5b60ad124
Rename zrpc to rpc
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-04 13:28:00 -06:00
Nathan Sobo
fdfed3d7db
Move all crates to a top-level crates folder
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-04 13:22:21 -06:00
Nathan Sobo
d768224182
Clean commented dependencies
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-04 13:15:45 -06:00
Nathan Sobo
c236b0828c
Extract worktree, rpc_client, and util crates
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-04 13:07:35 -06:00
Antonio Scandurra
154620233b
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
becae9feee
Pull out buffer
into its own crate
2021-10-04 16:50:12 +02:00
Antonio Scandurra
034aed053c
Extract a clock
subcrate for logical clocks
2021-10-04 14:34:02 +02:00
Nathan Sobo
5b75fcd0aa
💄
2021-10-02 19:46:07 -06:00
Nathan Sobo
6239b5ec60
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
f00045544f
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 Sobo
7728467790
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 Sobo
90cc01a50a
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 Sobo
fcf6a9d58a
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 Sobo
74a47a1384
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 Sobo
626fd2a2aa
Fix warnings
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-10-01 16:45:24 -06:00
Nathan Sobo
706925b781
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 Sobo
cf270b4dff
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
bd2d71a582
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 Sobo
514d1b66c3
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 Brunsfeld
8370b3075e
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 Brunsfeld
48f9bc972a
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 Brunsfeld
7577a2be32
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
24918b5cbc
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
3719a9ee23
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
6a20937ab7
Merge pull request #193 from zed-industries/project-browser
...
Add the project panel
2021-09-30 15:35:47 -07:00
Max Brunsfeld
2b3e5945c6
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
8dcd38c25a
Fix ProjectPanel test failure
2021-09-30 15:02:27 -07:00
Max Brunsfeld
6007fa6ab3
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 Brunsfeld
ad92bfe79f
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