Commit Graph
1142 Commits
Author SHA1 Message Date
Max Brunsfeld 10868cf0ea Start work on sending channel messages 2021-08-19 18:04:49 -07:00
Max Brunsfeld c28a366e4a Send LeaveChannel message in Entity::release instead of Drop::drop 2021-08-19 18:00:12 -07:00
Max Brunsfeld 467512eedd Remove Auth and AuthResponse protobuf messages 2021-08-19 18:00:12 -07:00
Nathan Sobo a4882169c2 Fetch messages when joining a channel 2021-08-19 15:25:20 -06:00
Max Brunsfeld 620b988e22 WIP 2021-08-19 13:07:28 -07:00
Max BrunsfeldandNathan Sobo 86c819757d Move Arc outside of rpc::Client
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-19 12:56:50 -07:00
Max BrunsfeldandNathan Sobo 3631fbd874 Consolidate server's rpc state into the rpc::Server struct
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-19 12:17:52 -07:00
Max BrunsfeldandNathan Sobo 266867b516 Send SaveBuffer message on foreground thread
This ensures that it gets sent *after* any other messages
for which we have already spawned a foreground send.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-19 12:17:32 -07:00
6288ac2e21 Fix double borrow panic
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-08-19 19:58:13 +02:00
5338b30c00 Remove remaining instances of router
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-08-19 19:38:17 +02:00
Antonio Scandurra d398b96f56 Re-register message handlers in RPC server 2021-08-19 15:35:03 +02:00
Antonio Scandurra d6412fdbde Delete old Peer implementation and adapt previous code paths
This still doesn't compile but should be close.
2021-08-19 15:02:30 +02:00
Antonio Scandurra 5dee7ecf5b Start using the new zrpc::peer2::Peer in Server 2021-08-19 15:01:57 +02:00
Nathan Sobo 9336c02867 Start on a peer2 module with an alternative implementation 2021-08-18 21:59:13 -06:00
Nathan Sobo 3f5db7284d Remove shared_worktrees map from ClientState
Each worktree instance now handles its own messages.
2021-08-18 19:16:40 -06:00
Nathan SoboandMax Brunsfeld 37f24d10ec Subscribe to worktree messages at the entity level
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-18 19:06:46 -06:00
Nathan SoboandMax Brunsfeld ef421d735d Implement broadcast of typed envelopes
This required a rework of the macro so that we can always construct a typed envelope from our list of available message types from incoming protobuf envelopes.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-18 13:12:27 -06:00
541f58e12c Start on subscribing to messages in channel entity instances
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-18 11:45:29 -06:00
Nathan Sobo 5b599a32b8 WIP 2021-08-06 16:06:03 -06:00
Max Brunsfeld ff822c9158 wip 2021-08-06 14:47:18 -07:00
Max BrunsfeldandNathan Sobo 4a32bd6bb0 Implement initial RPC endpoints for chat
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-06 13:43:06 -07:00
Max Brunsfeld 13ee9c2286 Start work on server-side RPC handling for chat 2021-08-05 19:59:54 -07:00
Max Brunsfeld 109d8271e0 Add server methods for creating chat domain objects
Also, consolidate all sql into a `db` module
2021-08-05 19:16:36 -07:00
Max Brunsfeld 2b9b9b8f1f Add seed-db script 2021-08-05 19:06:13 -07:00
Max BrunsfeldandNathan Sobo 0b6376bdda Add several proto messages for chat
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-05 19:05:58 -07:00
Max BrunsfeldandNathan Sobo 775bf8dd33 Add seed target for inserting seed data
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-05 14:16:40 -07:00
Max BrunsfeldandNathan Sobo 1910a4c1be Add DB migration for chat tables
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-05 11:56:24 -07:00
Nathan Sobo d9ab406961 Merge pull request #123 from zed-industries/fix-word-boundary-movement-multibyte
Fix moving to next word boundary with multi-byte characters
2021-08-05 08:59:20 -06:00
Nathan Sobo 01fcec53d7 Merge pull request #125 from zed-industries/theme-variables
Add flexible theme system
2021-08-05 08:57:52 -06:00
Max BrunsfeldandNathan Sobo d37a98782e Improve border parsing in themes
The `top`, `left`, `bottom` and `right` fields are optional.
If none are specified, then they are all set to true.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-04 17:19:42 -07:00
Nathan SoboandMax Brunsfeld 522fac9690 Fix compile error in tests
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-04 17:56:38 -06:00
Nathan SoboandMax Brunsfeld 1a21902460 Move fuzzy mod out of worktree
We now match against arbitrary strings in addition to paths.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-04 17:46:53 -06:00
Nathan Sobo 593afb2d9e Change reload theme binding 2021-08-04 17:34:15 -06:00
Nathan Sobo 039dae064c Remove logging 2021-08-04 17:09:15 -06:00
Nathan Sobo 85a076312a Merge branch 'main' into theme-variables 2021-08-04 16:47:43 -06:00
Nathan Sobo d484d80238 Match file finder icon color to label color 2021-08-04 16:17:33 -06:00
Nathan Sobo 33a8942c8b Pull empty selector label styling from correct place in theme 2021-08-04 16:12:15 -06:00
Nathan Sobo 7494a395ed Specify tab padding in theme 2021-08-04 16:08:15 -06:00
Nathan SoboandMax Brunsfeld 4d947580b1 Reload current theme on cmd-k shift-T
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-04 15:52:23 -06:00
Max BrunsfeldandNathan Sobo 8238c87481 Test bundled themes and store names on themes
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-04 14:16:28 -07:00
Max BrunsfeldandNathan Sobo 802f1f4e78 Get new theme structure working
* Fix precedence of extends directives
* Always group color with font properties for text theming

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-04 14:07:19 -07:00
Nathan SoboandMax Brunsfeld 56354c7623 Avoid crashes when laying out lines containing byte order marks
This solution isn't perfect and we'll probably have layout bugs with these lines, but this prevents us from triggering undefined behavior.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-04 11:52:21 -06:00
Nathan Sobo 5761756fb4 Move remaining theme-related code and tests from settings mod to theme mod 2021-08-03 19:42:39 -06:00
Nathan SoboandMax Brunsfeld 90b51c3356 Implement themes::ThemeRegistry::get
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-03 19:35:15 -06:00
Nathan SoboandMax Brunsfeld ca9862fff1 Start on new theme::ThemeRegistry
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-03 18:51:06 -06:00
Max Brunsfeld 81041d7841 Restructure Theme with new style objects 2021-08-03 13:36:58 -07:00
Max BrunsfeldandNathan Sobo ef0ffbe819 Use custom color wrapper type everywhere in gpui & zed
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-03 12:48:58 -07:00
Max BrunsfeldandNathan Sobo fa01273466 Extract {Container,Label}Style structs from those elements
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-03 11:07:03 -07:00
Nathan Sobo 200e278bc9 💄 2021-08-02 20:07:48 -06:00
Nathan Sobo 4c53470800 Notify all views when a theme is selected 2021-08-02 16:57:10 -06:00