Start work on requesting to join projects
Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
e199b7e50e
commit
be51a58311
25 changed files with 660 additions and 883 deletions
|
@ -14,8 +14,8 @@ message Envelope {
|
|||
RegisterProject register_project = 8;
|
||||
RegisterProjectResponse register_project_response = 9;
|
||||
UnregisterProject unregister_project = 10;
|
||||
ShareProject share_project = 11;
|
||||
UnshareProject unshare_project = 12;
|
||||
RequestJoinProject request_join_project = 11;
|
||||
RespondToJoinProjectRequest respond_to_join_project_request = 12;
|
||||
JoinProject join_project = 13;
|
||||
JoinProjectResponse join_project_response = 14;
|
||||
LeaveProject leave_project = 15;
|
||||
|
@ -124,12 +124,15 @@ message UnregisterProject {
|
|||
uint64 project_id = 1;
|
||||
}
|
||||
|
||||
message ShareProject {
|
||||
uint64 project_id = 1;
|
||||
message RequestJoinProject {
|
||||
uint64 requester_id = 1;
|
||||
uint64 project_id = 2;
|
||||
}
|
||||
|
||||
message UnshareProject {
|
||||
uint64 project_id = 1;
|
||||
message RespondToJoinProjectRequest {
|
||||
uint64 requester_id = 1;
|
||||
uint64 project_id = 2;
|
||||
bool allow = 3;
|
||||
}
|
||||
|
||||
message JoinProject {
|
||||
|
@ -137,10 +140,19 @@ message JoinProject {
|
|||
}
|
||||
|
||||
message JoinProjectResponse {
|
||||
uint32 replica_id = 1;
|
||||
repeated Worktree worktrees = 2;
|
||||
repeated Collaborator collaborators = 3;
|
||||
repeated LanguageServer language_servers = 4;
|
||||
oneof variant {
|
||||
Accept accept = 1;
|
||||
Decline decline = 2;
|
||||
}
|
||||
|
||||
message Accept {
|
||||
uint32 replica_id = 1;
|
||||
repeated Worktree worktrees = 2;
|
||||
repeated Collaborator collaborators = 3;
|
||||
repeated LanguageServer language_servers = 4;
|
||||
}
|
||||
|
||||
message Decline {}
|
||||
}
|
||||
|
||||
message LeaveProject {
|
||||
|
@ -882,7 +894,6 @@ message Contact {
|
|||
|
||||
message ProjectMetadata {
|
||||
uint64 id = 1;
|
||||
bool is_shared = 2;
|
||||
repeated string worktree_root_names = 3;
|
||||
repeated uint64 guests = 4;
|
||||
}
|
||||
|
|
|
@ -135,19 +135,19 @@ messages!(
|
|||
(RemoveProjectCollaborator, Foreground),
|
||||
(RenameProjectEntry, Foreground),
|
||||
(RequestContact, Foreground),
|
||||
(RequestJoinProject, Foreground),
|
||||
(RespondToContactRequest, Foreground),
|
||||
(RespondToJoinProjectRequest, Foreground),
|
||||
(SaveBuffer, Foreground),
|
||||
(SearchProject, Background),
|
||||
(SearchProjectResponse, Background),
|
||||
(SendChannelMessage, Foreground),
|
||||
(SendChannelMessageResponse, Foreground),
|
||||
(ShareProject, Foreground),
|
||||
(StartLanguageServer, Foreground),
|
||||
(Test, Foreground),
|
||||
(Unfollow, Foreground),
|
||||
(UnregisterProject, Foreground),
|
||||
(UnregisterWorktree, Foreground),
|
||||
(UnshareProject, Foreground),
|
||||
(UpdateBuffer, Foreground),
|
||||
(UpdateBufferFile, Foreground),
|
||||
(UpdateContacts, Foreground),
|
||||
|
@ -195,7 +195,6 @@ request_messages!(
|
|||
(SaveBuffer, BufferSaved),
|
||||
(SearchProject, SearchProjectResponse),
|
||||
(SendChannelMessage, SendChannelMessageResponse),
|
||||
(ShareProject, Ack),
|
||||
(Test, Test),
|
||||
(UpdateBuffer, Ack),
|
||||
(UpdateWorktree, Ack),
|
||||
|
@ -228,12 +227,13 @@ entity_messages!(
|
|||
PrepareRename,
|
||||
ReloadBuffers,
|
||||
RemoveProjectCollaborator,
|
||||
RequestJoinProject,
|
||||
SaveBuffer,
|
||||
SearchProject,
|
||||
StartLanguageServer,
|
||||
Unfollow,
|
||||
UnregisterProject,
|
||||
UnregisterWorktree,
|
||||
UnshareProject,
|
||||
UpdateBuffer,
|
||||
UpdateBufferFile,
|
||||
UpdateDiagnosticSummary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue