Commit Graph
1133 Commits
Author SHA1 Message Date
cdb374b2aa 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 3f68dcf5f0 Re-register message handlers in RPC server 2021-08-19 15:35:03 +02:00
Antonio Scandurra 898ed09f59 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 ba8e119c93 Start using the new zrpc::peer2::Peer in Server 2021-08-19 15:01:57 +02:00
Nathan Sobo 11af76d48f Start on a peer2 module with an alternative implementation 2021-08-18 21:59:13 -06:00
Nathan Sobo d94fb34638 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 ccaae15c99 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 3f7dd6dcdf 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
6fd84b40b3 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 9d1469b28e WIP 2021-08-06 16:06:03 -06:00
Max Brunsfeld 2807ec83ad wip 2021-08-06 14:47:18 -07:00
Max BrunsfeldandNathan Sobo 25fb1ead35 Implement initial RPC endpoints for chat
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-06 13:43:06 -07:00
Max Brunsfeld 9bf5244d38 Start work on server-side RPC handling for chat 2021-08-05 19:59:54 -07:00
Max Brunsfeld cc6a1d44bb 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 9d0f3d35ac Add seed-db script 2021-08-05 19:06:13 -07:00
Max BrunsfeldandNathan Sobo 0953585002 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 2b3970486c 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 f8ce1f6faf Add DB migration for chat tables
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-05 11:56:24 -07:00
Nathan Sobo 23e239f66e 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 4391b79e1d Merge pull request #125 from zed-industries/theme-variables
Add flexible theme system
2021-08-05 08:57:52 -06:00
Max BrunsfeldandNathan Sobo df9200c1ac 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 00b1bdd0be Fix compile error in tests
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-04 17:56:38 -06:00
Nathan SoboandMax Brunsfeld e2df459914 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 40905d2a20 Change reload theme binding 2021-08-04 17:34:15 -06:00
Nathan Sobo b9c1da3278 Remove logging 2021-08-04 17:09:15 -06:00
Nathan Sobo 26cbd05668 Merge branch 'main' into theme-variables 2021-08-04 16:47:43 -06:00
Nathan Sobo 4d685518a8 Match file finder icon color to label color 2021-08-04 16:17:33 -06:00
Nathan Sobo e142b029f2 Pull empty selector label styling from correct place in theme 2021-08-04 16:12:15 -06:00
Nathan Sobo 30146e34aa Specify tab padding in theme 2021-08-04 16:08:15 -06:00
Nathan SoboandMax Brunsfeld 436d0abc4b 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 20eaa9d759 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 662e76d3bc 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 1b7c57daf3 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 370470ace3 Move remaining theme-related code and tests from settings mod to theme mod 2021-08-03 19:42:39 -06:00
Nathan SoboandMax Brunsfeld 37cc3aabf9 Implement themes::ThemeRegistry::get
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-03 19:35:15 -06:00
Nathan SoboandMax Brunsfeld 3755b0894d Start on new theme::ThemeRegistry
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-03 18:51:06 -06:00
Max Brunsfeld 03bcb5fa11 Restructure Theme with new style objects 2021-08-03 13:36:58 -07:00
Max BrunsfeldandNathan Sobo 51d1664122 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 9f279062db 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 7119581dec 💄 2021-08-02 20:07:48 -06:00
Nathan Sobo 9087dd6965 Notify all views when a theme is selected 2021-08-02 16:57:10 -06:00
Max BrunsfeldandNathan Sobo 5532f60e2f Add a theme picker
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-02 14:55:27 -07:00
Max BrunsfeldandNathan Sobo 8c27ccacce Remove use of replace_with crate for managing element lifecycles
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-02 13:11:11 -07:00
Max BrunsfeldandNathan Sobo dbd64ed410 Make Theme::default have a non-empty replica theme vector
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-02 13:09:43 -07:00
Antonio Scandurra ae54bdecda Fix moving to next word boundary with multi-byte characters
Previously, for a given point, we would create a char iterator at
the start of the row and the skip `column` characters. This is
however incorrect because display points are expressed in bytes,
and so we could park the anchor midway through a multi-byte character.

This commit fixes the issue by switching `DisplayMap::chars_at` to
take a point instead and skipping characters correctly when a point with
a non-zero column is provided.
2021-08-02 14:11:31 +02:00
Max Brunsfeld 660bc0f2ff Start work on allowing variables in themes 2021-07-30 17:28:22 -07:00
Nate a090ba1603 Ship new Zed icon! 2021-07-30 19:34:35 -04:00
Max Brunsfeld 8464b3d599 Merge pull request #121 from zed-industries/save-file-as-new-worktree
Fix error when saving an untitled file outside of any existing worktree
2021-07-30 14:22:41 -07:00
Max Brunsfeld db7a799e6c Fix saving an untitled file outside of any existing worktree 2021-07-30 14:19:42 -07:00
Max Brunsfeld e5b3aa8be5 Merge pull request #122 from zed-industries/deterministic-random-synchronous-tests
Use deterministic executor in randomized synchronous tests
2021-07-30 14:16:05 -07:00