Make project id optional when following - server only
This commit is contained in:
+13
-10
@@ -274,7 +274,7 @@ message ParticipantProject {
|
||||
message Follower {
|
||||
PeerId leader_id = 1;
|
||||
PeerId follower_id = 2;
|
||||
uint64 project_id = 3;
|
||||
optional uint64 project_id = 3;
|
||||
}
|
||||
|
||||
message ParticipantLocation {
|
||||
@@ -1213,8 +1213,9 @@ message UpdateDiagnostics {
|
||||
}
|
||||
|
||||
message Follow {
|
||||
uint64 project_id = 1;
|
||||
PeerId leader_id = 2;
|
||||
uint64 room_id = 1;
|
||||
optional uint64 project_id = 2;
|
||||
PeerId leader_id = 3;
|
||||
}
|
||||
|
||||
message FollowResponse {
|
||||
@@ -1223,18 +1224,20 @@ message FollowResponse {
|
||||
}
|
||||
|
||||
message UpdateFollowers {
|
||||
uint64 project_id = 1;
|
||||
repeated PeerId follower_ids = 2;
|
||||
uint64 room_id = 1;
|
||||
optional uint64 project_id = 2;
|
||||
repeated PeerId follower_ids = 3;
|
||||
oneof variant {
|
||||
UpdateActiveView update_active_view = 3;
|
||||
View create_view = 4;
|
||||
UpdateView update_view = 5;
|
||||
UpdateActiveView update_active_view = 4;
|
||||
View create_view = 5;
|
||||
UpdateView update_view = 6;
|
||||
}
|
||||
}
|
||||
|
||||
message Unfollow {
|
||||
uint64 project_id = 1;
|
||||
PeerId leader_id = 2;
|
||||
uint64 room_id = 1;
|
||||
optional uint64 project_id = 2;
|
||||
PeerId leader_id = 3;
|
||||
}
|
||||
|
||||
message GetPrivateUserInfo {}
|
||||
|
||||
@@ -364,7 +364,6 @@ entity_messages!(
|
||||
CreateProjectEntry,
|
||||
DeleteProjectEntry,
|
||||
ExpandProjectEntry,
|
||||
Follow,
|
||||
FormatBuffers,
|
||||
GetCodeActions,
|
||||
GetCompletions,
|
||||
@@ -392,12 +391,10 @@ entity_messages!(
|
||||
SearchProject,
|
||||
StartLanguageServer,
|
||||
SynchronizeBuffers,
|
||||
Unfollow,
|
||||
UnshareProject,
|
||||
UpdateBuffer,
|
||||
UpdateBufferFile,
|
||||
UpdateDiagnosticSummary,
|
||||
UpdateFollowers,
|
||||
UpdateLanguageServer,
|
||||
UpdateProject,
|
||||
UpdateProjectCollaborator,
|
||||
|
||||
@@ -6,4 +6,4 @@ pub use conn::Connection;
|
||||
pub use peer::*;
|
||||
mod macros;
|
||||
|
||||
pub const PROTOCOL_VERSION: u32 = 63;
|
||||
pub const PROTOCOL_VERSION: u32 = 64;
|
||||
|
||||
Reference in New Issue
Block a user