Nathan Sobo
b44d4a353a
Use singular names in theme and number surfaces from 0
2021-08-20 10:18:05 -06:00
Antonio Scandurra
36817e1dbf
Merge remote-tracking branch 'origin/main' into chat
2021-08-20 16:52:29 +02:00
Antonio Scandurra and Nathan Sobo
5a647cb6bc
Forbid parking earlier in server integration tests
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-20 16:41:10 +02:00
Antonio Scandurra and Nathan Sobo
555d5132b7
Make database interactions deterministic in test
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-20 16:24:33 +02:00
Antonio Scandurra and Nathan Sobo
d5f0833b67
💄
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-20 15:00:08 +02:00
Antonio Scandurra and Nathan Sobo
1128405fa5
Extract a Db::close method and remove deref to PgPool
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-20 14:58:14 +02:00
Antonio Scandurra and Nathan Sobo
3e79a50fe1
Provide a consistent ordering for channel messages based on their ID
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-20 14:44:36 +02:00
Antonio Scandurra and Nathan Sobo
eb53ffcbbd
Implement and test channel cleanup as clients leave
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-20 14:32:53 +02:00
Antonio Scandurra
1d58a6f629
Save messages received from the server
2021-08-20 11:16:59 +02:00
Max Brunsfeld
460d56ff9e
Start work on sending channel messages
2021-08-19 18:04:49 -07:00
Max Brunsfeld
64d99655c1
Send LeaveChannel message in Entity::release instead of Drop::drop
2021-08-19 18:00:12 -07:00
Max Brunsfeld
e5e8da7aa2
Remove Auth and AuthResponse protobuf messages
2021-08-19 18:00:12 -07:00
Max Brunsfeld
3f89ae5284
Merge pull request #127 from zed-industries/generalize-theme-references
...
In themes, replace "variables" with a more general key-path reference construct
2021-08-19 14:43:54 -07:00
Nathan Sobo
7387633ec0
Fetch messages when joining a channel
2021-08-19 15:25:20 -06:00
Max Brunsfeld
29bfd78b0b
WIP
2021-08-19 13:07:28 -07:00
Max Brunsfeld and Nathan Sobo
0d06ef784a
Move Arc outside of rpc::Client
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-19 12:56:50 -07:00
Max Brunsfeld and Nathan Sobo
e734f58c97
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 Brunsfeld and Nathan Sobo
bdecb4c61c
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
f3d41b5418
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
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 Sobo and Max 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
Max Brunsfeld
0d9bc42cc4
Simplify logic for guaranteeing stable sort order of references
2021-08-18 13:54:20 -07:00
Nathan Sobo and Max 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
Max Brunsfeld
d66b0d49d0
Implement a topological sort for references in themes
2021-08-17 18:11:44 -07:00
Max Brunsfeld
b68632ceb7
In themes, replace variables with more general reference construct
2021-08-16 13:22:10 -07: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 Brunsfeld and Nathan Sobo
25fb1ead35
Implement initial RPC endpoints for chat
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-08-06 13:43:06 -07:00
Nathan Sobo
2af09d650a
Expose titlebar_height in LayoutContext
2021-08-06 09:11:16 -06:00
Nathan Sobo
6d6274ac8e
Add platform::Window::titlebar_height
2021-08-06 09:08:29 -06: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 Brunsfeld and Nathan 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 Brunsfeld and Nathan 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 Brunsfeld
5c56872d50
Log error when failing to load a theme in ThemeSelector
2021-08-05 13:04:46 -07:00
Max Brunsfeld and Nathan 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
56996aaefa
Start on custom titlebar
2021-08-05 11:48:35 -06: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 Brunsfeld and Nathan 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 Sobo and Max Brunsfeld
00b1bdd0be
Fix compile error in tests
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-04 17:56:38 -06:00
Nathan Sobo and Max 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