2021-06-09 19:15:25 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package zed.messages;
|
|
|
|
|
2022-12-14 14:55:56 +00:00
|
|
|
message PeerId {
|
2022-12-15 09:15:59 +00:00
|
|
|
uint32 owner_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
uint32 id = 2;
|
|
|
|
}
|
|
|
|
|
2021-06-15 20:06:50 +00:00
|
|
|
message Envelope {
|
|
|
|
uint32 id = 1;
|
|
|
|
optional uint32 responding_to = 2;
|
2022-12-15 15:34:59 +00:00
|
|
|
optional PeerId original_sender_id = 3;
|
2021-06-15 20:06:50 +00:00
|
|
|
oneof payload {
|
2022-10-18 16:42:55 +00:00
|
|
|
Hello hello = 4;
|
|
|
|
Ack ack = 5;
|
|
|
|
Error error = 6;
|
|
|
|
Ping ping = 7;
|
|
|
|
Test test = 8;
|
2023-02-03 18:13:38 +00:00
|
|
|
|
2022-10-18 16:42:55 +00:00
|
|
|
CreateRoom create_room = 9;
|
|
|
|
CreateRoomResponse create_room_response = 10;
|
|
|
|
JoinRoom join_room = 11;
|
|
|
|
JoinRoomResponse join_room_response = 12;
|
2022-12-20 01:50:43 +00:00
|
|
|
RejoinRoom rejoin_room = 108;
|
|
|
|
RejoinRoomResponse rejoin_room_response = 109;
|
2022-10-18 16:42:55 +00:00
|
|
|
LeaveRoom leave_room = 13;
|
|
|
|
Call call = 14;
|
|
|
|
IncomingCall incoming_call = 15;
|
|
|
|
CallCanceled call_canceled = 16;
|
|
|
|
CancelCall cancel_call = 17;
|
|
|
|
DeclineCall decline_call = 18;
|
|
|
|
UpdateParticipantLocation update_participant_location = 19;
|
|
|
|
RoomUpdated room_updated = 20;
|
|
|
|
|
|
|
|
ShareProject share_project = 21;
|
|
|
|
ShareProjectResponse share_project_response = 22;
|
|
|
|
UnshareProject unshare_project = 23;
|
|
|
|
JoinProject join_project = 24;
|
|
|
|
JoinProjectResponse join_project_response = 25;
|
|
|
|
LeaveProject leave_project = 26;
|
|
|
|
AddProjectCollaborator add_project_collaborator = 27;
|
2022-12-20 11:03:43 +00:00
|
|
|
UpdateProjectCollaborator update_project_collaborator = 110;
|
2022-10-18 16:42:55 +00:00
|
|
|
RemoveProjectCollaborator remove_project_collaborator = 28;
|
|
|
|
|
|
|
|
GetDefinition get_definition = 29;
|
|
|
|
GetDefinitionResponse get_definition_response = 30;
|
|
|
|
GetTypeDefinition get_type_definition = 31;
|
|
|
|
GetTypeDefinitionResponse get_type_definition_response = 32;
|
|
|
|
GetReferences get_references = 33;
|
|
|
|
GetReferencesResponse get_references_response = 34;
|
|
|
|
GetDocumentHighlights get_document_highlights = 35;
|
|
|
|
GetDocumentHighlightsResponse get_document_highlights_response = 36;
|
|
|
|
GetProjectSymbols get_project_symbols = 37;
|
|
|
|
GetProjectSymbolsResponse get_project_symbols_response = 38;
|
|
|
|
OpenBufferForSymbol open_buffer_for_symbol = 39;
|
|
|
|
OpenBufferForSymbolResponse open_buffer_for_symbol_response = 40;
|
|
|
|
|
|
|
|
UpdateProject update_project = 41;
|
|
|
|
UpdateWorktree update_worktree = 43;
|
|
|
|
|
|
|
|
CreateProjectEntry create_project_entry = 45;
|
|
|
|
RenameProjectEntry rename_project_entry = 46;
|
|
|
|
CopyProjectEntry copy_project_entry = 47;
|
|
|
|
DeleteProjectEntry delete_project_entry = 48;
|
|
|
|
ProjectEntryResponse project_entry_response = 49;
|
2023-06-21 20:38:30 +00:00
|
|
|
ExpandProjectEntry expand_project_entry = 114;
|
|
|
|
ExpandProjectEntryResponse expand_project_entry_response = 115;
|
2022-10-18 16:42:55 +00:00
|
|
|
|
|
|
|
UpdateDiagnosticSummary update_diagnostic_summary = 50;
|
|
|
|
StartLanguageServer start_language_server = 51;
|
|
|
|
UpdateLanguageServer update_language_server = 52;
|
|
|
|
|
|
|
|
OpenBufferById open_buffer_by_id = 53;
|
|
|
|
OpenBufferByPath open_buffer_by_path = 54;
|
|
|
|
OpenBufferResponse open_buffer_response = 55;
|
|
|
|
CreateBufferForPeer create_buffer_for_peer = 56;
|
|
|
|
UpdateBuffer update_buffer = 57;
|
|
|
|
UpdateBufferFile update_buffer_file = 58;
|
|
|
|
SaveBuffer save_buffer = 59;
|
|
|
|
BufferSaved buffer_saved = 60;
|
|
|
|
BufferReloaded buffer_reloaded = 61;
|
|
|
|
ReloadBuffers reload_buffers = 62;
|
|
|
|
ReloadBuffersResponse reload_buffers_response = 63;
|
2022-12-21 13:20:56 +00:00
|
|
|
SynchronizeBuffers synchronize_buffers = 200;
|
|
|
|
SynchronizeBuffersResponse synchronize_buffers_response = 201;
|
2022-10-18 16:42:55 +00:00
|
|
|
FormatBuffers format_buffers = 64;
|
|
|
|
FormatBuffersResponse format_buffers_response = 65;
|
|
|
|
GetCompletions get_completions = 66;
|
|
|
|
GetCompletionsResponse get_completions_response = 67;
|
|
|
|
ApplyCompletionAdditionalEdits apply_completion_additional_edits = 68;
|
|
|
|
ApplyCompletionAdditionalEditsResponse apply_completion_additional_edits_response = 69;
|
|
|
|
GetCodeActions get_code_actions = 70;
|
|
|
|
GetCodeActionsResponse get_code_actions_response = 71;
|
|
|
|
GetHover get_hover = 72;
|
|
|
|
GetHoverResponse get_hover_response = 73;
|
|
|
|
ApplyCodeAction apply_code_action = 74;
|
|
|
|
ApplyCodeActionResponse apply_code_action_response = 75;
|
|
|
|
PrepareRename prepare_rename = 76;
|
|
|
|
PrepareRenameResponse prepare_rename_response = 77;
|
|
|
|
PerformRename perform_rename = 78;
|
|
|
|
PerformRenameResponse perform_rename_response = 79;
|
|
|
|
SearchProject search_project = 80;
|
|
|
|
SearchProjectResponse search_project_response = 81;
|
|
|
|
|
|
|
|
UpdateContacts update_contacts = 92;
|
|
|
|
UpdateInviteInfo update_invite_info = 93;
|
|
|
|
ShowContacts show_contacts = 94;
|
|
|
|
|
|
|
|
GetUsers get_users = 95;
|
|
|
|
FuzzySearchUsers fuzzy_search_users = 96;
|
|
|
|
UsersResponse users_response = 97;
|
|
|
|
RequestContact request_contact = 98;
|
|
|
|
RespondToContactRequest respond_to_contact_request = 99;
|
|
|
|
RemoveContact remove_contact = 100;
|
|
|
|
|
|
|
|
Follow follow = 101;
|
|
|
|
FollowResponse follow_response = 102;
|
|
|
|
UpdateFollowers update_followers = 103;
|
|
|
|
Unfollow unfollow = 104;
|
|
|
|
GetPrivateUserInfo get_private_user_info = 105;
|
|
|
|
GetPrivateUserInfoResponse get_private_user_info_response = 106;
|
|
|
|
UpdateDiffBase update_diff_base = 107;
|
2023-05-23 14:11:23 +00:00
|
|
|
|
|
|
|
OnTypeFormatting on_type_formatting = 111;
|
|
|
|
OnTypeFormattingResponse on_type_formatting_response = 112;
|
2023-05-30 18:05:08 +00:00
|
|
|
|
|
|
|
UpdateWorktreeSettings update_worktree_settings = 113;
|
2023-06-04 18:49:22 +00:00
|
|
|
|
2023-06-29 08:21:12 +00:00
|
|
|
InlayHints inlay_hints = 116;
|
|
|
|
InlayHintsResponse inlay_hints_response = 117;
|
2023-08-25 11:30:07 +00:00
|
|
|
ResolveInlayHint resolve_inlay_hint = 137;
|
|
|
|
ResolveInlayHintResponse resolve_inlay_hint_response = 138;
|
2023-06-29 08:21:12 +00:00
|
|
|
RefreshInlayHints refresh_inlay_hints = 118;
|
2023-07-29 00:05:56 +00:00
|
|
|
|
|
|
|
CreateChannel create_channel = 119;
|
2023-08-10 00:11:52 +00:00
|
|
|
ChannelResponse channel_response = 120;
|
2023-07-29 00:05:56 +00:00
|
|
|
InviteChannelMember invite_channel_member = 121;
|
|
|
|
RemoveChannelMember remove_channel_member = 122;
|
|
|
|
RespondToChannelInvite respond_to_channel_invite = 123;
|
|
|
|
UpdateChannels update_channels = 124;
|
2023-08-10 00:11:52 +00:00
|
|
|
JoinChannel join_channel = 125;
|
|
|
|
RemoveChannel remove_channel = 126;
|
|
|
|
GetChannelMembers get_channel_members = 127;
|
|
|
|
GetChannelMembersResponse get_channel_members_response = 128;
|
|
|
|
SetChannelMemberAdmin set_channel_member_admin = 129;
|
|
|
|
RenameChannel rename_channel = 130;
|
2023-08-21 23:30:57 +00:00
|
|
|
|
2023-08-22 18:02:13 +00:00
|
|
|
JoinChannelBuffer join_channel_buffer = 131;
|
|
|
|
JoinChannelBufferResponse join_channel_buffer_response = 132;
|
2023-08-22 00:53:37 +00:00
|
|
|
UpdateChannelBuffer update_channel_buffer = 133;
|
2023-08-22 18:02:13 +00:00
|
|
|
LeaveChannelBuffer leave_channel_buffer = 134;
|
2023-08-22 20:25:31 +00:00
|
|
|
AddChannelBufferCollaborator add_channel_buffer_collaborator = 135;
|
|
|
|
RemoveChannelBufferCollaborator remove_channel_buffer_collaborator = 136;
|
2021-06-09 19:15:25 +00:00
|
|
|
}
|
2021-06-15 20:06:50 +00:00
|
|
|
}
|
2021-06-09 19:15:25 +00:00
|
|
|
|
2021-08-06 02:05:58 +00:00
|
|
|
// Messages
|
|
|
|
|
2022-10-18 16:42:55 +00:00
|
|
|
message Hello {
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId peer_id = 1;
|
2022-10-18 16:42:55 +00:00
|
|
|
}
|
|
|
|
|
2021-09-09 18:24:16 +00:00
|
|
|
message Ping {}
|
2021-08-19 03:59:13 +00:00
|
|
|
|
2021-09-09 18:24:16 +00:00
|
|
|
message Ack {}
|
2021-08-19 03:59:13 +00:00
|
|
|
|
2021-08-27 23:53:23 +00:00
|
|
|
message Error {
|
|
|
|
string message = 1;
|
|
|
|
}
|
|
|
|
|
2022-02-16 17:32:03 +00:00
|
|
|
message Test {
|
|
|
|
uint64 id = 1;
|
|
|
|
}
|
|
|
|
|
2022-09-23 13:05:32 +00:00
|
|
|
message CreateRoom {}
|
|
|
|
|
|
|
|
message CreateRoomResponse {
|
2022-10-17 10:20:55 +00:00
|
|
|
Room room = 1;
|
2022-10-17 12:50:05 +00:00
|
|
|
optional LiveKitConnectionInfo live_kit_connection_info = 2;
|
2022-09-23 13:05:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message JoinRoom {
|
|
|
|
uint64 id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message JoinRoomResponse {
|
|
|
|
Room room = 1;
|
2023-08-15 21:56:54 +00:00
|
|
|
optional uint64 channel_id = 2;
|
|
|
|
optional LiveKitConnectionInfo live_kit_connection_info = 3;
|
2022-09-23 13:05:32 +00:00
|
|
|
}
|
|
|
|
|
2022-12-20 01:50:43 +00:00
|
|
|
message RejoinRoom {
|
|
|
|
uint64 id = 1;
|
|
|
|
repeated UpdateProject reshared_projects = 2;
|
|
|
|
repeated RejoinProject rejoined_projects = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RejoinProject {
|
2022-12-20 16:30:58 +00:00
|
|
|
uint64 id = 1;
|
2022-12-20 01:50:43 +00:00
|
|
|
repeated RejoinWorktree worktrees = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RejoinWorktree {
|
|
|
|
uint64 id = 1;
|
|
|
|
uint64 scan_id = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RejoinRoomResponse {
|
|
|
|
Room room = 1;
|
|
|
|
repeated ResharedProject reshared_projects = 2;
|
|
|
|
repeated RejoinedProject rejoined_projects = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResharedProject {
|
|
|
|
uint64 id = 1;
|
|
|
|
repeated Collaborator collaborators = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RejoinedProject {
|
|
|
|
uint64 id = 1;
|
2022-12-20 11:03:43 +00:00
|
|
|
repeated WorktreeMetadata worktrees = 2;
|
|
|
|
repeated Collaborator collaborators = 3;
|
|
|
|
repeated LanguageServer language_servers = 4;
|
2022-12-20 01:50:43 +00:00
|
|
|
}
|
|
|
|
|
2022-11-14 09:13:36 +00:00
|
|
|
message LeaveRoom {}
|
2022-09-26 12:27:52 +00:00
|
|
|
|
2022-09-23 13:05:32 +00:00
|
|
|
message Room {
|
2022-10-17 10:20:55 +00:00
|
|
|
uint64 id = 1;
|
2022-11-18 19:18:48 +00:00
|
|
|
repeated Participant participants = 2;
|
|
|
|
repeated PendingParticipant pending_participants = 3;
|
2023-02-03 18:13:38 +00:00
|
|
|
repeated Follower followers = 4;
|
|
|
|
string live_kit_room = 5;
|
2022-09-23 13:05:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Participant {
|
|
|
|
uint64 user_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId peer_id = 2;
|
2022-10-10 23:56:03 +00:00
|
|
|
repeated ParticipantProject projects = 3;
|
2022-09-23 13:05:32 +00:00
|
|
|
ParticipantLocation location = 4;
|
|
|
|
}
|
|
|
|
|
2022-11-11 14:22:04 +00:00
|
|
|
message PendingParticipant {
|
|
|
|
uint64 user_id = 1;
|
|
|
|
uint64 calling_user_id = 2;
|
|
|
|
optional uint64 initial_project_id = 3;
|
|
|
|
}
|
|
|
|
|
2022-10-10 23:56:03 +00:00
|
|
|
message ParticipantProject {
|
|
|
|
uint64 id = 1;
|
|
|
|
repeated string worktree_root_names = 2;
|
|
|
|
}
|
|
|
|
|
2023-02-03 18:13:38 +00:00
|
|
|
message Follower {
|
|
|
|
PeerId leader_id = 1;
|
|
|
|
PeerId follower_id = 2;
|
2023-02-24 05:07:17 +00:00
|
|
|
uint64 project_id = 3;
|
2023-02-03 18:13:38 +00:00
|
|
|
}
|
|
|
|
|
2022-09-23 13:05:32 +00:00
|
|
|
message ParticipantLocation {
|
|
|
|
oneof variant {
|
2022-10-11 13:24:31 +00:00
|
|
|
SharedProject shared_project = 1;
|
|
|
|
UnsharedProject unshared_project = 2;
|
|
|
|
External external = 3;
|
2022-09-23 13:05:32 +00:00
|
|
|
}
|
2023-04-25 00:41:55 +00:00
|
|
|
|
2022-10-11 13:24:31 +00:00
|
|
|
message SharedProject {
|
2022-09-23 13:05:32 +00:00
|
|
|
uint64 id = 1;
|
|
|
|
}
|
2023-04-25 00:41:55 +00:00
|
|
|
|
2022-10-11 13:24:31 +00:00
|
|
|
message UnsharedProject {}
|
2023-04-25 00:41:55 +00:00
|
|
|
|
2022-09-23 13:05:32 +00:00
|
|
|
message External {}
|
|
|
|
}
|
|
|
|
|
2022-09-23 16:16:57 +00:00
|
|
|
message Call {
|
|
|
|
uint64 room_id = 1;
|
2022-11-11 11:06:43 +00:00
|
|
|
uint64 called_user_id = 2;
|
2022-10-04 17:25:48 +00:00
|
|
|
optional uint64 initial_project_id = 3;
|
2022-09-23 16:16:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message IncomingCall {
|
|
|
|
uint64 room_id = 1;
|
2022-11-11 11:06:43 +00:00
|
|
|
uint64 calling_user_id = 2;
|
2022-09-23 16:16:57 +00:00
|
|
|
repeated uint64 participant_user_ids = 3;
|
2022-10-11 08:59:36 +00:00
|
|
|
optional ParticipantProject initial_project = 4;
|
2022-09-23 16:16:57 +00:00
|
|
|
}
|
2022-09-23 13:05:32 +00:00
|
|
|
|
2022-12-13 10:43:09 +00:00
|
|
|
message CallCanceled {
|
|
|
|
uint64 room_id = 1;
|
|
|
|
}
|
2022-10-06 13:12:27 +00:00
|
|
|
|
|
|
|
message CancelCall {
|
2022-10-06 13:20:49 +00:00
|
|
|
uint64 room_id = 1;
|
2022-11-11 11:06:43 +00:00
|
|
|
uint64 called_user_id = 2;
|
2022-10-06 13:12:27 +00:00
|
|
|
}
|
2022-09-26 08:34:26 +00:00
|
|
|
|
2022-10-06 13:20:49 +00:00
|
|
|
message DeclineCall {
|
|
|
|
uint64 room_id = 1;
|
|
|
|
}
|
2022-09-23 13:05:32 +00:00
|
|
|
|
2022-10-04 09:46:01 +00:00
|
|
|
message UpdateParticipantLocation {
|
|
|
|
uint64 room_id = 1;
|
|
|
|
ParticipantLocation location = 2;
|
|
|
|
}
|
|
|
|
|
2022-09-23 13:05:32 +00:00
|
|
|
message RoomUpdated {
|
|
|
|
Room room = 1;
|
|
|
|
}
|
|
|
|
|
2022-10-17 12:50:05 +00:00
|
|
|
message LiveKitConnectionInfo {
|
|
|
|
string server_url = 1;
|
|
|
|
string token = 2;
|
|
|
|
}
|
|
|
|
|
2022-09-30 16:21:47 +00:00
|
|
|
message ShareProject {
|
|
|
|
uint64 room_id = 1;
|
2022-10-10 23:56:03 +00:00
|
|
|
repeated WorktreeMetadata worktrees = 2;
|
2022-09-30 16:21:47 +00:00
|
|
|
}
|
2021-12-18 06:00:39 +00:00
|
|
|
|
2022-09-30 10:23:57 +00:00
|
|
|
message ShareProjectResponse {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
2021-09-17 01:39:29 +00:00
|
|
|
}
|
|
|
|
|
2022-09-30 10:23:57 +00:00
|
|
|
message UnshareProject {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
2021-09-17 01:39:29 +00:00
|
|
|
}
|
|
|
|
|
2022-06-01 20:41:48 +00:00
|
|
|
message UpdateProject {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
repeated WorktreeMetadata worktrees = 2;
|
|
|
|
}
|
|
|
|
|
2021-12-18 06:00:39 +00:00
|
|
|
message JoinProject {
|
|
|
|
uint64 project_id = 1;
|
2021-06-15 20:06:50 +00:00
|
|
|
}
|
2021-06-10 01:14:30 +00:00
|
|
|
|
2021-12-18 06:00:39 +00:00
|
|
|
message JoinProjectResponse {
|
2022-09-30 09:35:50 +00:00
|
|
|
uint32 replica_id = 1;
|
|
|
|
repeated WorktreeMetadata worktrees = 2;
|
|
|
|
repeated Collaborator collaborators = 3;
|
|
|
|
repeated LanguageServer language_servers = 4;
|
2021-06-15 20:06:50 +00:00
|
|
|
}
|
2021-06-15 08:42:06 +00:00
|
|
|
|
2021-12-18 06:00:39 +00:00
|
|
|
message LeaveProject {
|
|
|
|
uint64 project_id = 1;
|
2021-09-21 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-12-18 06:00:39 +00:00
|
|
|
message UpdateWorktree {
|
2022-02-23 17:35:25 +00:00
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 worktree_id = 2;
|
|
|
|
string root_name = 3;
|
|
|
|
repeated Entry updated_entries = 4;
|
|
|
|
repeated uint64 removed_entries = 5;
|
2023-05-04 20:26:53 +00:00
|
|
|
repeated RepositoryEntry updated_repositories = 6;
|
2023-05-04 23:26:37 +00:00
|
|
|
repeated uint64 removed_repositories = 7;
|
|
|
|
uint64 scan_id = 8;
|
|
|
|
bool is_last_update = 9;
|
|
|
|
string abs_path = 10;
|
2021-06-30 14:59:02 +00:00
|
|
|
}
|
|
|
|
|
2023-05-30 18:05:08 +00:00
|
|
|
message UpdateWorktreeSettings {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 worktree_id = 2;
|
|
|
|
string path = 3;
|
|
|
|
optional string content = 4;
|
|
|
|
}
|
|
|
|
|
2022-05-04 00:55:33 +00:00
|
|
|
message CreateProjectEntry {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 worktree_id = 2;
|
2022-11-15 15:46:17 +00:00
|
|
|
string path = 3;
|
2022-05-04 00:55:33 +00:00
|
|
|
bool is_directory = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RenameProjectEntry {
|
|
|
|
uint64 project_id = 1;
|
2022-05-04 17:27:04 +00:00
|
|
|
uint64 entry_id = 2;
|
2022-11-15 15:46:17 +00:00
|
|
|
string new_path = 3;
|
2022-05-04 00:55:33 +00:00
|
|
|
}
|
|
|
|
|
2022-05-30 12:52:34 +00:00
|
|
|
message CopyProjectEntry {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 entry_id = 2;
|
2022-11-15 15:46:17 +00:00
|
|
|
string new_path = 3;
|
2022-05-30 12:52:34 +00:00
|
|
|
}
|
|
|
|
|
2022-05-04 00:55:33 +00:00
|
|
|
message DeleteProjectEntry {
|
|
|
|
uint64 project_id = 1;
|
2022-05-05 00:53:29 +00:00
|
|
|
uint64 entry_id = 2;
|
2022-05-04 00:55:33 +00:00
|
|
|
}
|
|
|
|
|
2023-06-13 23:01:53 +00:00
|
|
|
message ExpandProjectEntry {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 entry_id = 2;
|
|
|
|
}
|
|
|
|
|
2023-06-21 20:38:30 +00:00
|
|
|
message ExpandProjectEntryResponse {
|
|
|
|
uint64 worktree_scan_id = 1;
|
|
|
|
}
|
|
|
|
|
2022-05-04 17:27:04 +00:00
|
|
|
message ProjectEntryResponse {
|
|
|
|
Entry entry = 1;
|
2022-05-31 06:11:07 +00:00
|
|
|
uint64 worktree_scan_id = 2;
|
2022-05-04 17:27:04 +00:00
|
|
|
}
|
|
|
|
|
2021-12-18 06:00:39 +00:00
|
|
|
message AddProjectCollaborator {
|
|
|
|
uint64 project_id = 1;
|
2021-11-27 03:35:50 +00:00
|
|
|
Collaborator collaborator = 2;
|
2021-06-18 23:26:12 +00:00
|
|
|
}
|
|
|
|
|
2022-12-20 11:03:43 +00:00
|
|
|
message UpdateProjectCollaborator {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
PeerId old_peer_id = 2;
|
|
|
|
PeerId new_peer_id = 3;
|
|
|
|
}
|
|
|
|
|
2021-12-18 06:00:39 +00:00
|
|
|
message RemoveProjectCollaborator {
|
|
|
|
uint64 project_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId peer_id = 2;
|
2021-06-18 23:26:12 +00:00
|
|
|
}
|
|
|
|
|
2023-08-22 20:25:31 +00:00
|
|
|
message AddChannelBufferCollaborator {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
Collaborator collaborator = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveChannelBufferCollaborator {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
PeerId peer_id = 2;
|
|
|
|
}
|
|
|
|
|
2022-01-24 11:27:13 +00:00
|
|
|
message GetDefinition {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
2022-03-03 11:18:19 +00:00
|
|
|
repeated VectorClockEntry version = 4;
|
2022-01-24 11:27:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetDefinitionResponse {
|
2022-06-13 23:21:53 +00:00
|
|
|
repeated LocationLink links = 1;
|
2022-01-24 11:27:13 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 15:41:08 +00:00
|
|
|
message GetTypeDefinition {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
|
|
|
repeated VectorClockEntry version = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetTypeDefinitionResponse {
|
|
|
|
repeated LocationLink links = 1;
|
|
|
|
}
|
|
|
|
|
2022-02-22 22:27:05 +00:00
|
|
|
message GetReferences {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
2022-03-03 11:18:19 +00:00
|
|
|
repeated VectorClockEntry version = 4;
|
2022-02-22 22:27:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetReferencesResponse {
|
|
|
|
repeated Location locations = 1;
|
|
|
|
}
|
|
|
|
|
2022-02-23 01:05:55 +00:00
|
|
|
message GetDocumentHighlights {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
2022-03-03 11:18:19 +00:00
|
|
|
repeated VectorClockEntry version = 4;
|
2022-02-23 01:05:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetDocumentHighlightsResponse {
|
|
|
|
repeated DocumentHighlight highlights = 1;
|
|
|
|
}
|
|
|
|
|
2022-02-22 22:27:05 +00:00
|
|
|
message Location {
|
2022-08-17 09:10:09 +00:00
|
|
|
uint64 buffer_id = 1;
|
2022-02-22 22:27:05 +00:00
|
|
|
Anchor start = 2;
|
|
|
|
Anchor end = 3;
|
2022-01-24 11:27:13 +00:00
|
|
|
}
|
|
|
|
|
2022-06-13 23:21:53 +00:00
|
|
|
message LocationLink {
|
|
|
|
optional Location origin = 1;
|
|
|
|
Location target = 2;
|
|
|
|
}
|
|
|
|
|
2022-02-23 01:05:55 +00:00
|
|
|
message DocumentHighlight {
|
|
|
|
Kind kind = 1;
|
|
|
|
Anchor start = 2;
|
|
|
|
Anchor end = 3;
|
|
|
|
|
|
|
|
enum Kind {
|
|
|
|
Text = 0;
|
|
|
|
Read = 1;
|
|
|
|
Write = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-22 11:15:38 +00:00
|
|
|
message GetProjectSymbols {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
string query = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetProjectSymbolsResponse {
|
2022-02-22 15:26:01 +00:00
|
|
|
repeated Symbol symbols = 4;
|
2022-02-22 11:15:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Symbol {
|
2022-02-22 16:48:14 +00:00
|
|
|
uint64 source_worktree_id = 1;
|
|
|
|
uint64 worktree_id = 2;
|
2022-03-29 23:57:18 +00:00
|
|
|
string language_server_name = 3;
|
2022-02-22 17:08:43 +00:00
|
|
|
string name = 4;
|
|
|
|
int32 kind = 5;
|
|
|
|
string path = 6;
|
2023-06-03 02:02:19 +00:00
|
|
|
// Cannot use generate anchors for unopened files,
|
2022-11-23 18:28:44 +00:00
|
|
|
// so we are forced to use point coords instead
|
|
|
|
PointUtf16 start = 7;
|
|
|
|
PointUtf16 end = 8;
|
2022-02-22 17:43:16 +00:00
|
|
|
bytes signature = 9;
|
2022-02-22 15:26:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message OpenBufferForSymbol {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
Symbol symbol = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message OpenBufferForSymbolResponse {
|
2022-08-17 09:10:09 +00:00
|
|
|
uint64 buffer_id = 1;
|
2022-02-22 11:15:38 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 15:50:29 +00:00
|
|
|
message OpenBufferByPath {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 worktree_id = 2;
|
|
|
|
string path = 3;
|
2021-06-18 17:28:39 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 15:50:29 +00:00
|
|
|
message OpenBufferById {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 id = 2;
|
|
|
|
}
|
|
|
|
|
2021-06-23 14:20:02 +00:00
|
|
|
message OpenBufferResponse {
|
2022-08-17 09:10:09 +00:00
|
|
|
uint64 buffer_id = 1;
|
2021-06-15 20:06:50 +00:00
|
|
|
}
|
2021-06-09 19:15:25 +00:00
|
|
|
|
2022-08-17 09:10:09 +00:00
|
|
|
message CreateBufferForPeer {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId peer_id = 2;
|
2022-08-23 14:05:56 +00:00
|
|
|
oneof variant {
|
|
|
|
BufferState state = 3;
|
|
|
|
BufferChunk chunk = 4;
|
|
|
|
}
|
2021-06-15 20:06:50 +00:00
|
|
|
}
|
2021-06-10 01:14:30 +00:00
|
|
|
|
2021-06-25 23:26:35 +00:00
|
|
|
message UpdateBuffer {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
2022-01-22 00:23:39 +00:00
|
|
|
uint64 buffer_id = 2;
|
2022-01-23 05:19:04 +00:00
|
|
|
repeated Operation operations = 3;
|
|
|
|
}
|
|
|
|
|
2023-08-22 00:53:37 +00:00
|
|
|
message UpdateChannelBuffer {
|
2023-08-22 20:25:31 +00:00
|
|
|
uint64 channel_id = 1;
|
|
|
|
repeated Operation operations = 2;
|
2023-08-22 00:53:37 +00:00
|
|
|
}
|
|
|
|
|
2022-01-23 05:19:04 +00:00
|
|
|
message UpdateBufferFile {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
File file = 3;
|
2021-06-25 20:46:36 +00:00
|
|
|
}
|
|
|
|
|
2021-07-02 15:02:17 +00:00
|
|
|
message SaveBuffer {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
2022-01-22 00:23:39 +00:00
|
|
|
uint64 buffer_id = 2;
|
2022-02-15 01:13:50 +00:00
|
|
|
repeated VectorClockEntry version = 3;
|
2021-07-02 15:02:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BufferSaved {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
2022-01-22 00:23:39 +00:00
|
|
|
uint64 buffer_id = 2;
|
|
|
|
repeated VectorClockEntry version = 3;
|
|
|
|
Timestamp mtime = 4;
|
2022-06-17 10:38:25 +00:00
|
|
|
string fingerprint = 5;
|
2021-07-02 15:02:17 +00:00
|
|
|
}
|
|
|
|
|
2022-01-24 09:17:36 +00:00
|
|
|
message BufferReloaded {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
repeated VectorClockEntry version = 3;
|
|
|
|
Timestamp mtime = 4;
|
2022-06-17 10:38:25 +00:00
|
|
|
string fingerprint = 5;
|
2022-07-05 06:01:14 +00:00
|
|
|
LineEnding line_ending = 6;
|
2022-01-24 09:17:36 +00:00
|
|
|
}
|
|
|
|
|
2022-04-01 12:01:56 +00:00
|
|
|
message ReloadBuffers {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
repeated uint64 buffer_ids = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReloadBuffersResponse {
|
|
|
|
ProjectTransaction transaction = 1;
|
|
|
|
}
|
|
|
|
|
2022-12-21 13:20:56 +00:00
|
|
|
message SynchronizeBuffers {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
repeated BufferVersion buffers = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SynchronizeBuffersResponse {
|
|
|
|
repeated BufferVersion buffers = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message BufferVersion {
|
|
|
|
uint64 id = 1;
|
|
|
|
repeated VectorClockEntry version = 2;
|
|
|
|
}
|
|
|
|
|
2022-09-22 22:21:05 +00:00
|
|
|
enum FormatTrigger {
|
|
|
|
Save = 0;
|
|
|
|
Manual = 1;
|
|
|
|
}
|
|
|
|
|
2022-02-11 10:05:25 +00:00
|
|
|
message FormatBuffers {
|
2022-01-12 17:01:20 +00:00
|
|
|
uint64 project_id = 1;
|
2022-09-22 22:21:05 +00:00
|
|
|
FormatTrigger trigger = 2;
|
|
|
|
repeated uint64 buffer_ids = 3;
|
2022-02-11 10:05:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message FormatBuffersResponse {
|
|
|
|
ProjectTransaction transaction = 1;
|
2022-01-12 17:01:20 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 11:22:47 +00:00
|
|
|
message GetCompletions {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
2022-02-15 09:16:29 +00:00
|
|
|
repeated VectorClockEntry version = 4;
|
2022-02-02 11:22:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetCompletionsResponse {
|
|
|
|
repeated Completion completions = 1;
|
2022-02-15 09:16:29 +00:00
|
|
|
repeated VectorClockEntry version = 2;
|
2022-02-02 11:22:47 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 15:22:38 +00:00
|
|
|
message ApplyCompletionAdditionalEdits {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Completion completion = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ApplyCompletionAdditionalEditsResponse {
|
2022-02-08 18:46:12 +00:00
|
|
|
Transaction transaction = 1;
|
2022-02-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 11:22:47 +00:00
|
|
|
message Completion {
|
|
|
|
Anchor old_start = 1;
|
|
|
|
Anchor old_end = 2;
|
|
|
|
string new_text = 3;
|
|
|
|
bytes lsp_completion = 4;
|
|
|
|
}
|
|
|
|
|
2022-02-08 11:18:14 +00:00
|
|
|
message GetCodeActions {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
2022-02-14 13:13:36 +00:00
|
|
|
Anchor start = 3;
|
|
|
|
Anchor end = 4;
|
2022-03-03 11:18:19 +00:00
|
|
|
repeated VectorClockEntry version = 5;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetCodeActionsResponse {
|
|
|
|
repeated CodeAction actions = 1;
|
2022-02-17 13:46:26 +00:00
|
|
|
repeated VectorClockEntry version = 2;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2022-05-30 15:00:45 +00:00
|
|
|
message GetHover {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
|
|
|
repeated VectorClockEntry version = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetHoverResponse {
|
2022-06-03 21:56:21 +00:00
|
|
|
optional Anchor start = 1;
|
|
|
|
optional Anchor end = 2;
|
|
|
|
repeated HoverBlock contents = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message HoverBlock {
|
|
|
|
string text = 1;
|
|
|
|
optional string language = 2;
|
2023-04-26 20:23:29 +00:00
|
|
|
bool is_markdown = 3;
|
2022-05-30 15:00:45 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 11:18:14 +00:00
|
|
|
message ApplyCodeAction {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
CodeAction action = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ApplyCodeActionResponse {
|
2022-02-08 18:46:12 +00:00
|
|
|
ProjectTransaction transaction = 1;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2022-02-17 20:44:14 +00:00
|
|
|
message PrepareRename {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
2022-03-03 11:18:19 +00:00
|
|
|
repeated VectorClockEntry version = 4;
|
2022-02-17 20:44:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PrepareRenameResponse {
|
|
|
|
bool can_rename = 1;
|
|
|
|
Anchor start = 2;
|
|
|
|
Anchor end = 3;
|
|
|
|
repeated VectorClockEntry version = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PerformRename {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor position = 3;
|
|
|
|
string new_name = 4;
|
2022-03-03 11:18:19 +00:00
|
|
|
repeated VectorClockEntry version = 5;
|
2022-02-17 20:44:14 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 14:11:23 +00:00
|
|
|
message OnTypeFormatting {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
2023-05-23 19:58:40 +00:00
|
|
|
Anchor position = 3;
|
|
|
|
string trigger = 4;
|
|
|
|
repeated VectorClockEntry version = 5;
|
2023-05-23 14:11:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message OnTypeFormattingResponse {
|
2023-05-25 12:49:07 +00:00
|
|
|
Transaction transaction = 1;
|
2023-05-23 14:11:23 +00:00
|
|
|
}
|
|
|
|
|
2023-06-04 18:49:22 +00:00
|
|
|
message InlayHints {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor start = 3;
|
|
|
|
Anchor end = 4;
|
|
|
|
repeated VectorClockEntry version = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHintsResponse {
|
|
|
|
repeated InlayHint hints = 1;
|
|
|
|
repeated VectorClockEntry version = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHint {
|
|
|
|
Anchor position = 1;
|
|
|
|
InlayHintLabel label = 2;
|
|
|
|
optional string kind = 3;
|
2023-06-13 13:34:38 +00:00
|
|
|
bool padding_left = 4;
|
|
|
|
bool padding_right = 5;
|
|
|
|
InlayHintTooltip tooltip = 6;
|
2023-08-18 12:54:30 +00:00
|
|
|
ResolveState resolve_state = 7;
|
2023-06-04 18:49:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHintLabel {
|
|
|
|
oneof label {
|
|
|
|
string value = 1;
|
|
|
|
InlayHintLabelParts label_parts = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHintLabelParts {
|
|
|
|
repeated InlayHintLabelPart parts = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHintLabelPart {
|
|
|
|
string value = 1;
|
|
|
|
InlayHintLabelPartTooltip tooltip = 2;
|
2023-08-25 21:05:39 +00:00
|
|
|
optional string location_url = 3;
|
|
|
|
PointUtf16 location_range_start = 4;
|
|
|
|
PointUtf16 location_range_end = 5;
|
|
|
|
optional uint64 language_server_id = 6;
|
2023-06-04 18:49:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHintTooltip {
|
|
|
|
oneof content {
|
|
|
|
string value = 1;
|
|
|
|
MarkupContent markup_content = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message InlayHintLabelPartTooltip {
|
|
|
|
oneof content {
|
|
|
|
string value = 1;
|
|
|
|
MarkupContent markup_content = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-18 12:54:30 +00:00
|
|
|
message ResolveState {
|
|
|
|
State state = 1;
|
|
|
|
LspResolveState lsp_resolve_state = 2;
|
|
|
|
|
|
|
|
enum State {
|
|
|
|
Resolved = 0;
|
|
|
|
CanResolve = 1;
|
|
|
|
Resolving = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LspResolveState {
|
|
|
|
string value = 1;
|
2023-08-18 18:09:04 +00:00
|
|
|
uint64 server_id = 2;
|
2023-08-18 12:54:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-18 18:09:04 +00:00
|
|
|
message ResolveInlayHint {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
uint64 language_server_id = 3;
|
|
|
|
InlayHint hint = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResolveInlayHintResponse {
|
|
|
|
InlayHint hint = 1;
|
|
|
|
}
|
|
|
|
|
2023-06-23 18:01:07 +00:00
|
|
|
message RefreshInlayHints {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
}
|
|
|
|
|
2023-06-04 18:49:22 +00:00
|
|
|
message MarkupContent {
|
2023-08-18 18:09:04 +00:00
|
|
|
bool is_markdown = 1;
|
2023-06-04 18:49:22 +00:00
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2022-02-17 20:44:14 +00:00
|
|
|
message PerformRenameResponse {
|
|
|
|
ProjectTransaction transaction = 2;
|
|
|
|
}
|
|
|
|
|
2022-02-25 20:38:31 +00:00
|
|
|
message SearchProject {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
string query = 2;
|
|
|
|
bool regex = 3;
|
|
|
|
bool whole_word = 4;
|
|
|
|
bool case_sensitive = 5;
|
2023-05-07 19:17:26 +00:00
|
|
|
string files_to_include = 6;
|
|
|
|
string files_to_exclude = 7;
|
2022-02-25 20:38:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SearchProjectResponse {
|
|
|
|
repeated Location locations = 1;
|
|
|
|
}
|
|
|
|
|
2022-02-08 11:18:14 +00:00
|
|
|
message CodeAction {
|
2023-04-07 15:46:05 +00:00
|
|
|
uint64 server_id = 1;
|
|
|
|
Anchor start = 2;
|
|
|
|
Anchor end = 3;
|
|
|
|
bytes lsp_action = 4;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 18:46:12 +00:00
|
|
|
message ProjectTransaction {
|
2022-08-17 09:10:09 +00:00
|
|
|
repeated uint64 buffer_ids = 1;
|
2022-02-08 18:46:12 +00:00
|
|
|
repeated Transaction transactions = 2;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 18:46:12 +00:00
|
|
|
message Transaction {
|
|
|
|
LocalTimestamp id = 1;
|
|
|
|
repeated LocalTimestamp edit_ids = 2;
|
|
|
|
repeated VectorClockEntry start = 3;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 18:46:12 +00:00
|
|
|
message LocalTimestamp {
|
2022-02-08 11:18:14 +00:00
|
|
|
uint32 replica_id = 1;
|
2022-02-08 18:46:12 +00:00
|
|
|
uint32 value = 2;
|
2022-02-08 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2022-03-10 15:45:13 +00:00
|
|
|
message LanguageServer {
|
|
|
|
uint64 id = 1;
|
|
|
|
string name = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StartLanguageServer {
|
|
|
|
uint64 project_id = 1;
|
|
|
|
LanguageServer server = 2;
|
|
|
|
}
|
|
|
|
|
2021-12-13 19:15:03 +00:00
|
|
|
message UpdateDiagnosticSummary {
|
2021-12-18 06:00:39 +00:00
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 worktree_id = 2;
|
2022-01-06 19:11:06 +00:00
|
|
|
DiagnosticSummary summary = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DiagnosticSummary {
|
2022-01-23 05:19:04 +00:00
|
|
|
string path = 1;
|
2022-06-07 17:05:06 +00:00
|
|
|
uint64 language_server_id = 2;
|
|
|
|
uint32 error_count = 3;
|
|
|
|
uint32 warning_count = 4;
|
2022-01-04 22:29:22 +00:00
|
|
|
}
|
|
|
|
|
2022-03-10 15:45:13 +00:00
|
|
|
message UpdateLanguageServer {
|
2022-01-07 14:03:19 +00:00
|
|
|
uint64 project_id = 1;
|
2022-03-10 15:09:47 +00:00
|
|
|
uint64 language_server_id = 2;
|
2022-03-10 11:00:33 +00:00
|
|
|
oneof variant {
|
2022-03-10 15:09:47 +00:00
|
|
|
LspWorkStart work_start = 3;
|
|
|
|
LspWorkProgress work_progress = 4;
|
|
|
|
LspWorkEnd work_end = 5;
|
|
|
|
LspDiskBasedDiagnosticsUpdating disk_based_diagnostics_updating = 6;
|
|
|
|
LspDiskBasedDiagnosticsUpdated disk_based_diagnostics_updated = 7;
|
2022-03-10 11:00:33 +00:00
|
|
|
}
|
2022-01-07 14:03:19 +00:00
|
|
|
}
|
|
|
|
|
2022-03-10 11:00:33 +00:00
|
|
|
message LspWorkStart {
|
|
|
|
string token = 1;
|
2022-06-08 17:26:41 +00:00
|
|
|
optional string message = 2;
|
|
|
|
optional uint32 percentage = 3;
|
2022-03-10 11:00:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message LspWorkProgress {
|
|
|
|
string token = 1;
|
|
|
|
optional string message = 2;
|
|
|
|
optional uint32 percentage = 3;
|
2021-12-13 19:15:03 +00:00
|
|
|
}
|
|
|
|
|
2022-03-10 11:00:33 +00:00
|
|
|
message LspWorkEnd {
|
|
|
|
string token = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LspDiskBasedDiagnosticsUpdating {}
|
|
|
|
|
|
|
|
message LspDiskBasedDiagnosticsUpdated {}
|
|
|
|
|
2023-07-29 00:05:56 +00:00
|
|
|
message UpdateChannels {
|
2021-08-06 02:05:58 +00:00
|
|
|
repeated Channel channels = 1;
|
2023-07-29 00:05:56 +00:00
|
|
|
repeated uint64 remove_channels = 2;
|
|
|
|
repeated Channel channel_invitations = 3;
|
|
|
|
repeated uint64 remove_channel_invitations = 4;
|
2023-08-02 19:15:06 +00:00
|
|
|
repeated ChannelParticipants channel_participants = 5;
|
2023-08-09 19:20:48 +00:00
|
|
|
repeated ChannelPermission channel_permissions = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ChannelPermission {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
bool is_admin = 2;
|
2023-08-02 19:15:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ChannelParticipants {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
repeated uint64 participant_user_ids = 2;
|
2021-08-06 02:05:58 +00:00
|
|
|
}
|
|
|
|
|
2023-07-31 22:27:10 +00:00
|
|
|
message JoinChannel {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
}
|
|
|
|
|
2023-08-01 23:06:21 +00:00
|
|
|
message RemoveChannel {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
}
|
|
|
|
|
2023-08-03 18:40:55 +00:00
|
|
|
message GetChannelMembers {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetChannelMembersResponse {
|
2023-08-03 21:49:01 +00:00
|
|
|
repeated ChannelMember members = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ChannelMember {
|
|
|
|
uint64 user_id = 1;
|
2023-08-04 21:12:08 +00:00
|
|
|
bool admin = 2;
|
|
|
|
Kind kind = 3;
|
2023-08-03 21:49:01 +00:00
|
|
|
|
|
|
|
enum Kind {
|
|
|
|
Member = 0;
|
|
|
|
Invitee = 1;
|
|
|
|
AncestorMember = 2;
|
|
|
|
}
|
2023-08-03 18:40:55 +00:00
|
|
|
}
|
2023-08-01 23:06:21 +00:00
|
|
|
|
2023-07-29 00:05:56 +00:00
|
|
|
message CreateChannel {
|
|
|
|
string name = 1;
|
|
|
|
optional uint64 parent_id = 2;
|
|
|
|
}
|
|
|
|
|
2023-08-10 00:11:52 +00:00
|
|
|
message ChannelResponse {
|
|
|
|
Channel channel = 1;
|
2021-08-06 02:05:58 +00:00
|
|
|
}
|
|
|
|
|
2023-07-29 00:05:56 +00:00
|
|
|
message InviteChannelMember {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
uint64 user_id = 2;
|
|
|
|
bool admin = 3;
|
2021-08-06 02:05:58 +00:00
|
|
|
}
|
|
|
|
|
2023-07-29 00:05:56 +00:00
|
|
|
message RemoveChannelMember {
|
2021-08-19 21:25:20 +00:00
|
|
|
uint64 channel_id = 1;
|
2023-07-29 00:05:56 +00:00
|
|
|
uint64 user_id = 2;
|
|
|
|
}
|
|
|
|
|
2023-08-04 21:12:08 +00:00
|
|
|
message SetChannelMemberAdmin {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
uint64 user_id = 2;
|
|
|
|
bool admin = 3;
|
|
|
|
}
|
|
|
|
|
2023-08-09 19:20:48 +00:00
|
|
|
message RenameChannel {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
string name = 2;
|
|
|
|
}
|
|
|
|
|
2023-08-22 18:02:13 +00:00
|
|
|
message JoinChannelBuffer {
|
2023-08-21 23:30:57 +00:00
|
|
|
uint64 channel_id = 1;
|
|
|
|
}
|
|
|
|
|
2023-08-22 18:02:13 +00:00
|
|
|
message JoinChannelBufferResponse {
|
2023-08-22 00:53:37 +00:00
|
|
|
uint64 buffer_id = 1;
|
2023-08-22 20:25:31 +00:00
|
|
|
uint32 replica_id = 2;
|
|
|
|
string base_text = 3;
|
|
|
|
repeated Operation operations = 4;
|
|
|
|
repeated Collaborator collaborators = 5;
|
2023-08-22 00:53:37 +00:00
|
|
|
}
|
|
|
|
|
2023-08-22 18:02:13 +00:00
|
|
|
message LeaveChannelBuffer {
|
|
|
|
uint64 channel_id = 1;
|
2023-08-21 23:30:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-29 00:05:56 +00:00
|
|
|
message RespondToChannelInvite {
|
|
|
|
uint64 channel_id = 1;
|
|
|
|
bool accept = 2;
|
2021-08-19 21:25:20 +00:00
|
|
|
}
|
|
|
|
|
2021-08-06 02:05:58 +00:00
|
|
|
message GetUsers {
|
|
|
|
repeated uint64 user_ids = 1;
|
|
|
|
}
|
|
|
|
|
2022-05-05 21:14:44 +00:00
|
|
|
message FuzzySearchUsers {
|
|
|
|
string query = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UsersResponse {
|
2021-08-06 02:05:58 +00:00
|
|
|
repeated User users = 1;
|
|
|
|
}
|
|
|
|
|
2022-05-06 13:38:02 +00:00
|
|
|
message RequestContact {
|
2022-05-07 21:09:27 +00:00
|
|
|
uint64 responder_id = 1;
|
2022-05-06 13:38:02 +00:00
|
|
|
}
|
|
|
|
|
2022-05-09 17:24:05 +00:00
|
|
|
message RemoveContact {
|
|
|
|
uint64 user_id = 1;
|
|
|
|
}
|
|
|
|
|
2022-05-06 13:38:02 +00:00
|
|
|
message RespondToContactRequest {
|
2022-05-07 21:09:27 +00:00
|
|
|
uint64 requester_id = 1;
|
2022-05-06 13:38:02 +00:00
|
|
|
ContactRequestResponse response = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ContactRequestResponse {
|
|
|
|
Accept = 0;
|
2022-05-11 21:20:05 +00:00
|
|
|
Decline = 1;
|
2022-05-06 13:38:02 +00:00
|
|
|
Block = 2;
|
2022-05-11 13:13:37 +00:00
|
|
|
Dismiss = 3;
|
2022-05-06 13:38:02 +00:00
|
|
|
}
|
|
|
|
|
2021-11-26 17:59:41 +00:00
|
|
|
message UpdateContacts {
|
|
|
|
repeated Contact contacts = 1;
|
2022-05-07 02:50:59 +00:00
|
|
|
repeated uint64 remove_contacts = 2;
|
|
|
|
repeated IncomingContactRequest incoming_requests = 3;
|
|
|
|
repeated uint64 remove_incoming_requests = 4;
|
|
|
|
repeated uint64 outgoing_requests = 5;
|
|
|
|
repeated uint64 remove_outgoing_requests = 6;
|
2022-05-06 13:38:02 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 23:57:46 +00:00
|
|
|
message UpdateInviteInfo {
|
|
|
|
string url = 1;
|
|
|
|
uint32 count = 2;
|
|
|
|
}
|
|
|
|
|
2022-05-20 13:41:38 +00:00
|
|
|
message ShowContacts {}
|
|
|
|
|
2022-05-06 13:38:02 +00:00
|
|
|
message IncomingContactRequest {
|
2022-05-07 21:09:27 +00:00
|
|
|
uint64 requester_id = 1;
|
2022-05-07 02:50:59 +00:00
|
|
|
bool should_notify = 2;
|
2021-09-17 12:36:50 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 15:50:29 +00:00
|
|
|
message UpdateDiagnostics {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 lamport_timestamp = 2;
|
2023-04-19 17:55:29 +00:00
|
|
|
uint64 server_id = 3;
|
|
|
|
repeated Diagnostic diagnostics = 4;
|
2022-03-17 15:50:29 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 17:46:54 +00:00
|
|
|
message Follow {
|
|
|
|
uint64 project_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId leader_id = 2;
|
2022-03-17 17:46:54 +00:00
|
|
|
}
|
2022-03-17 15:50:29 +00:00
|
|
|
|
|
|
|
message FollowResponse {
|
2022-12-14 22:40:07 +00:00
|
|
|
optional ViewId active_view_id = 1;
|
2022-03-17 15:50:29 +00:00
|
|
|
repeated View views = 2;
|
|
|
|
}
|
|
|
|
|
2022-03-17 17:46:54 +00:00
|
|
|
message UpdateFollowers {
|
|
|
|
uint64 project_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
repeated PeerId follower_ids = 2;
|
2022-03-18 15:00:03 +00:00
|
|
|
oneof variant {
|
|
|
|
UpdateActiveView update_active_view = 3;
|
|
|
|
View create_view = 4;
|
|
|
|
UpdateView update_view = 5;
|
|
|
|
}
|
2022-03-17 17:46:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Unfollow {
|
|
|
|
uint64 project_id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId leader_id = 2;
|
2022-03-17 15:50:29 +00:00
|
|
|
}
|
|
|
|
|
2022-09-29 19:32:25 +00:00
|
|
|
message GetPrivateUserInfo {}
|
|
|
|
|
|
|
|
message GetPrivateUserInfoResponse {
|
|
|
|
string metrics_id = 1;
|
2022-10-03 17:52:57 +00:00
|
|
|
bool staff = 2;
|
2023-08-25 21:34:19 +00:00
|
|
|
repeated string flags = 3;
|
2022-09-29 19:32:25 +00:00
|
|
|
}
|
|
|
|
|
2021-08-06 02:05:58 +00:00
|
|
|
// Entities
|
|
|
|
|
2022-12-14 22:40:07 +00:00
|
|
|
message ViewId {
|
2022-12-15 14:32:05 +00:00
|
|
|
PeerId creator = 1;
|
2022-12-14 22:40:07 +00:00
|
|
|
uint64 id = 2;
|
|
|
|
}
|
|
|
|
|
2022-03-21 18:47:00 +00:00
|
|
|
message UpdateActiveView {
|
2022-12-14 22:40:07 +00:00
|
|
|
optional ViewId id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
optional PeerId leader_id = 2;
|
2022-03-21 18:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateView {
|
2022-12-14 22:40:07 +00:00
|
|
|
ViewId id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
optional PeerId leader_id = 2;
|
2022-03-21 18:47:00 +00:00
|
|
|
|
|
|
|
oneof variant {
|
|
|
|
Editor editor = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Editor {
|
2022-11-29 22:50:43 +00:00
|
|
|
repeated ExcerptInsertion inserted_excerpts = 1;
|
|
|
|
repeated uint64 deleted_excerpts = 2;
|
|
|
|
repeated Selection selections = 3;
|
2022-12-17 22:00:53 +00:00
|
|
|
optional Selection pending_selection = 4;
|
|
|
|
EditorAnchor scroll_top_anchor = 5;
|
|
|
|
float scroll_x = 6;
|
|
|
|
float scroll_y = 7;
|
2022-03-21 18:47:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 15:50:29 +00:00
|
|
|
message View {
|
2022-12-14 22:40:07 +00:00
|
|
|
ViewId id = 1;
|
2022-12-14 14:55:56 +00:00
|
|
|
optional PeerId leader_id = 2;
|
2022-03-21 18:47:00 +00:00
|
|
|
|
2022-03-17 15:50:29 +00:00
|
|
|
oneof variant {
|
2022-03-21 18:47:00 +00:00
|
|
|
Editor editor = 3;
|
2023-08-24 18:25:20 +00:00
|
|
|
ChannelView channel_view = 4;
|
2022-03-17 15:50:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Editor {
|
2022-11-29 22:50:43 +00:00
|
|
|
bool singleton = 1;
|
|
|
|
optional string title = 2;
|
|
|
|
repeated Excerpt excerpts = 3;
|
|
|
|
repeated Selection selections = 4;
|
2022-12-17 22:00:53 +00:00
|
|
|
optional Selection pending_selection = 5;
|
|
|
|
EditorAnchor scroll_top_anchor = 6;
|
|
|
|
float scroll_x = 7;
|
|
|
|
float scroll_y = 8;
|
2022-03-17 15:50:29 +00:00
|
|
|
}
|
2023-08-24 18:25:20 +00:00
|
|
|
|
|
|
|
message ChannelView {
|
|
|
|
uint64 channel_id = 1;
|
2023-08-24 19:36:01 +00:00
|
|
|
Editor editor = 2;
|
2023-08-24 18:25:20 +00:00
|
|
|
}
|
2022-03-17 15:50:29 +00:00
|
|
|
}
|
|
|
|
|
2021-11-27 03:35:50 +00:00
|
|
|
message Collaborator {
|
2022-12-14 14:55:56 +00:00
|
|
|
PeerId peer_id = 1;
|
2021-08-06 02:05:58 +00:00
|
|
|
uint32 replica_id = 2;
|
2021-11-26 17:22:34 +00:00
|
|
|
uint64 user_id = 3;
|
2021-08-06 02:05:58 +00:00
|
|
|
}
|
|
|
|
|
2021-06-18 23:26:12 +00:00
|
|
|
message User {
|
2021-06-25 17:20:53 +00:00
|
|
|
uint64 id = 1;
|
|
|
|
string github_login = 2;
|
|
|
|
string avatar_url = 3;
|
2021-06-18 23:26:12 +00:00
|
|
|
}
|
|
|
|
|
2022-01-22 21:29:36 +00:00
|
|
|
message File {
|
|
|
|
uint64 worktree_id = 1;
|
2022-10-13 07:10:10 +00:00
|
|
|
uint64 entry_id = 2;
|
2022-01-22 21:29:36 +00:00
|
|
|
string path = 3;
|
|
|
|
Timestamp mtime = 4;
|
2022-10-13 07:10:10 +00:00
|
|
|
bool is_deleted = 5;
|
2022-01-22 21:29:36 +00:00
|
|
|
}
|
|
|
|
|
2021-06-18 12:52:38 +00:00
|
|
|
message Entry {
|
2021-06-28 17:41:33 +00:00
|
|
|
uint64 id = 1;
|
|
|
|
bool is_dir = 2;
|
2022-11-15 15:46:17 +00:00
|
|
|
string path = 3;
|
2021-06-28 17:41:33 +00:00
|
|
|
uint64 inode = 4;
|
|
|
|
Timestamp mtime = 5;
|
|
|
|
bool is_symlink = 6;
|
|
|
|
bool is_ignored = 7;
|
2023-06-16 21:19:48 +00:00
|
|
|
bool is_external = 8;
|
|
|
|
optional GitStatus git_status = 9;
|
2021-06-15 20:06:50 +00:00
|
|
|
}
|
2021-06-10 01:14:30 +00:00
|
|
|
|
2023-05-04 20:26:53 +00:00
|
|
|
message RepositoryEntry {
|
2023-05-05 23:33:21 +00:00
|
|
|
uint64 work_directory_id = 1;
|
|
|
|
optional string branch = 2;
|
2023-05-04 20:26:53 +00:00
|
|
|
}
|
|
|
|
|
2023-05-10 02:29:45 +00:00
|
|
|
message StatusEntry {
|
2023-05-10 18:59:04 +00:00
|
|
|
string repo_path = 1;
|
2023-05-10 02:29:45 +00:00
|
|
|
GitStatus status = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum GitStatus {
|
|
|
|
Added = 0;
|
|
|
|
Modified = 1;
|
|
|
|
Conflict = 2;
|
|
|
|
}
|
|
|
|
|
2022-08-23 14:05:56 +00:00
|
|
|
message BufferState {
|
2021-06-25 17:20:53 +00:00
|
|
|
uint64 id = 1;
|
2022-01-23 05:19:04 +00:00
|
|
|
optional File file = 2;
|
2022-02-08 13:50:47 +00:00
|
|
|
string base_text = 3;
|
2022-10-03 19:11:06 +00:00
|
|
|
optional string diff_base = 4;
|
2022-08-30 15:08:22 +00:00
|
|
|
LineEnding line_ending = 5;
|
2023-01-17 15:20:50 +00:00
|
|
|
repeated VectorClockEntry saved_version = 6;
|
|
|
|
string saved_version_fingerprint = 7;
|
|
|
|
Timestamp saved_mtime = 8;
|
2022-08-23 14:05:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BufferChunk {
|
|
|
|
uint64 buffer_id = 1;
|
|
|
|
repeated Operation operations = 2;
|
|
|
|
bool is_last = 3;
|
2022-07-04 15:25:19 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 19:47:40 +00:00
|
|
|
enum LineEnding {
|
2022-07-04 15:25:19 +00:00
|
|
|
Unix = 0;
|
|
|
|
Windows = 1;
|
2022-01-05 02:06:16 +00:00
|
|
|
}
|
|
|
|
|
2021-06-25 23:26:35 +00:00
|
|
|
message Selection {
|
|
|
|
uint64 id = 1;
|
2022-11-29 02:00:38 +00:00
|
|
|
EditorAnchor start = 2;
|
|
|
|
EditorAnchor end = 3;
|
2021-06-25 23:26:35 +00:00
|
|
|
bool reversed = 4;
|
|
|
|
}
|
|
|
|
|
2022-11-29 02:00:38 +00:00
|
|
|
message EditorAnchor {
|
|
|
|
uint64 excerpt_id = 1;
|
|
|
|
Anchor anchor = 2;
|
|
|
|
}
|
|
|
|
|
2022-10-15 22:08:21 +00:00
|
|
|
enum CursorShape {
|
|
|
|
CursorBar = 0;
|
|
|
|
CursorBlock = 1;
|
|
|
|
CursorUnderscore = 2;
|
|
|
|
CursorHollow = 3;
|
|
|
|
}
|
|
|
|
|
2022-11-29 22:50:43 +00:00
|
|
|
message ExcerptInsertion {
|
|
|
|
Excerpt excerpt = 1;
|
|
|
|
optional uint64 previous_excerpt_id = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Excerpt {
|
|
|
|
uint64 id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
|
|
|
Anchor context_start = 3;
|
|
|
|
Anchor context_end = 4;
|
|
|
|
Anchor primary_start = 5;
|
|
|
|
Anchor primary_end = 6;
|
|
|
|
}
|
|
|
|
|
2021-12-09 15:38:46 +00:00
|
|
|
message Anchor {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 local_timestamp = 2;
|
|
|
|
uint64 offset = 3;
|
|
|
|
Bias bias = 4;
|
2022-04-27 14:11:42 +00:00
|
|
|
optional uint64 buffer_id = 5;
|
2021-12-09 15:38:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum Bias {
|
|
|
|
Left = 0;
|
|
|
|
Right = 1;
|
|
|
|
}
|
|
|
|
|
2021-11-01 22:28:37 +00:00
|
|
|
message Diagnostic {
|
2021-12-09 15:38:46 +00:00
|
|
|
Anchor start = 1;
|
|
|
|
Anchor end = 2;
|
2023-04-26 19:46:20 +00:00
|
|
|
optional string source = 3;
|
|
|
|
Severity severity = 4;
|
|
|
|
string message = 5;
|
|
|
|
optional string code = 6;
|
|
|
|
uint64 group_id = 7;
|
|
|
|
bool is_primary = 8;
|
|
|
|
bool is_valid = 9;
|
|
|
|
bool is_disk_based = 10;
|
|
|
|
bool is_unnecessary = 11;
|
2021-12-22 20:52:41 +00:00
|
|
|
|
2021-11-01 22:28:37 +00:00
|
|
|
enum Severity {
|
|
|
|
None = 0;
|
|
|
|
Error = 1;
|
|
|
|
Warning = 2;
|
|
|
|
Information = 3;
|
|
|
|
Hint = 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-15 20:06:50 +00:00
|
|
|
message Operation {
|
|
|
|
oneof variant {
|
|
|
|
Edit edit = 1;
|
2021-06-25 20:46:36 +00:00
|
|
|
Undo undo = 2;
|
2021-06-25 23:26:35 +00:00
|
|
|
UpdateSelections update_selections = 3;
|
2022-01-05 18:53:18 +00:00
|
|
|
UpdateDiagnostics update_diagnostics = 4;
|
2022-02-02 13:07:41 +00:00
|
|
|
UpdateCompletionTriggers update_completion_triggers = 5;
|
2021-06-09 19:15:25 +00:00
|
|
|
}
|
|
|
|
|
2021-06-15 20:06:50 +00:00
|
|
|
message Edit {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 local_timestamp = 2;
|
|
|
|
uint32 lamport_timestamp = 3;
|
|
|
|
repeated VectorClockEntry version = 4;
|
2021-06-23 14:20:02 +00:00
|
|
|
repeated Range ranges = 5;
|
2022-04-28 00:25:38 +00:00
|
|
|
repeated string new_text = 6;
|
2021-06-09 19:15:25 +00:00
|
|
|
}
|
2021-06-25 20:46:36 +00:00
|
|
|
|
|
|
|
message Undo {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 local_timestamp = 2;
|
|
|
|
uint32 lamport_timestamp = 3;
|
2022-03-03 17:07:59 +00:00
|
|
|
repeated VectorClockEntry version = 4;
|
2022-08-17 09:26:05 +00:00
|
|
|
repeated UndoCount counts = 5;
|
2021-06-29 08:25:42 +00:00
|
|
|
}
|
|
|
|
|
2021-06-25 23:26:35 +00:00
|
|
|
message UpdateSelections {
|
|
|
|
uint32 replica_id = 1;
|
2022-01-23 05:19:04 +00:00
|
|
|
uint32 lamport_timestamp = 2;
|
|
|
|
repeated Selection selections = 3;
|
2022-05-18 18:10:24 +00:00
|
|
|
bool line_mode = 4;
|
2022-10-15 22:08:21 +00:00
|
|
|
CursorShape cursor_shape = 5;
|
2021-10-22 18:35:29 +00:00
|
|
|
}
|
2022-02-02 13:07:41 +00:00
|
|
|
|
|
|
|
message UpdateCompletionTriggers {
|
2022-02-08 13:50:47 +00:00
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 lamport_timestamp = 2;
|
|
|
|
repeated string triggers = 3;
|
2022-02-02 13:07:41 +00:00
|
|
|
}
|
2021-06-23 14:20:02 +00:00
|
|
|
}
|
2021-10-22 18:35:29 +00:00
|
|
|
|
2022-01-05 02:06:16 +00:00
|
|
|
message UndoMapEntry {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 local_timestamp = 2;
|
|
|
|
repeated UndoCount counts = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UndoCount {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 local_timestamp = 2;
|
|
|
|
uint32 count = 3;
|
2021-06-23 14:20:02 +00:00
|
|
|
}
|
2021-06-15 08:42:06 +00:00
|
|
|
|
2021-06-23 14:20:02 +00:00
|
|
|
message VectorClockEntry {
|
|
|
|
uint32 replica_id = 1;
|
|
|
|
uint32 timestamp = 2;
|
2021-06-15 08:42:06 +00:00
|
|
|
}
|
2021-06-22 00:07:56 +00:00
|
|
|
|
|
|
|
message Timestamp {
|
|
|
|
uint64 seconds = 1;
|
|
|
|
uint32 nanos = 2;
|
2021-06-23 14:20:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Range {
|
|
|
|
uint64 start = 1;
|
|
|
|
uint64 end = 2;
|
|
|
|
}
|
2021-08-06 02:05:58 +00:00
|
|
|
|
2022-11-23 18:28:44 +00:00
|
|
|
message PointUtf16 {
|
2022-02-22 17:08:43 +00:00
|
|
|
uint32 row = 1;
|
|
|
|
uint32 column = 2;
|
|
|
|
}
|
|
|
|
|
2021-09-16 14:23:20 +00:00
|
|
|
message Nonce {
|
|
|
|
uint64 upper_half = 1;
|
|
|
|
uint64 lower_half = 2;
|
|
|
|
}
|
|
|
|
|
2021-08-06 02:05:58 +00:00
|
|
|
message Channel {
|
|
|
|
uint64 id = 1;
|
|
|
|
string name = 2;
|
2023-08-09 19:20:48 +00:00
|
|
|
optional uint64 parent_id = 3;
|
2021-09-02 16:31:24 +00:00
|
|
|
}
|
2021-09-17 12:36:50 +00:00
|
|
|
|
2021-11-26 17:59:41 +00:00
|
|
|
message Contact {
|
2021-09-17 12:36:50 +00:00
|
|
|
uint64 user_id = 1;
|
2022-09-29 17:40:36 +00:00
|
|
|
bool online = 2;
|
2022-10-07 10:21:56 +00:00
|
|
|
bool busy = 3;
|
|
|
|
bool should_notify = 4;
|
2021-09-17 12:36:50 +00:00
|
|
|
}
|
2022-06-01 20:41:48 +00:00
|
|
|
|
|
|
|
message WorktreeMetadata {
|
|
|
|
uint64 id = 1;
|
|
|
|
string root_name = 2;
|
|
|
|
bool visible = 3;
|
2022-11-15 15:46:17 +00:00
|
|
|
string abs_path = 4;
|
2022-06-01 20:41:48 +00:00
|
|
|
}
|
2022-10-02 01:18:35 +00:00
|
|
|
|
2022-10-03 19:11:06 +00:00
|
|
|
message UpdateDiffBase {
|
2022-10-02 01:18:35 +00:00
|
|
|
uint64 project_id = 1;
|
|
|
|
uint64 buffer_id = 2;
|
2022-10-03 19:11:06 +00:00
|
|
|
optional string diff_base = 3;
|
2022-10-02 01:18:35 +00:00
|
|
|
}
|