Notify host when guests close buffers
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
committed by
Max Brunsfeld
co-authored by
Max Brunsfeld
parent
2257abd7dd
commit
7ee0862b99
@@ -61,18 +61,18 @@ message OpenBuffer {
|
||||
}
|
||||
|
||||
message OpenBufferResponse {
|
||||
uint64 buffer_id = 1;
|
||||
Buffer buffer = 2;
|
||||
Buffer buffer = 1;
|
||||
}
|
||||
|
||||
message CloseBuffer {
|
||||
uint64 id = 1;
|
||||
uint64 worktree_id = 1;
|
||||
uint64 buffer_id = 2;
|
||||
}
|
||||
|
||||
message User {
|
||||
string github_login = 1;
|
||||
string avatar_url = 2;
|
||||
uint64 id = 3;
|
||||
uint64 id = 1;
|
||||
string github_login = 2;
|
||||
string avatar_url = 3;
|
||||
}
|
||||
|
||||
message Worktree {
|
||||
@@ -90,8 +90,9 @@ message Entry {
|
||||
}
|
||||
|
||||
message Buffer {
|
||||
string content = 1;
|
||||
repeated Operation history = 2;
|
||||
uint64 id = 1;
|
||||
string content = 2;
|
||||
repeated Operation history = 3;
|
||||
}
|
||||
|
||||
message Operation {
|
||||
|
||||
+2
-2
@@ -442,8 +442,8 @@ mod tests {
|
||||
path: "path/two".to_string(),
|
||||
};
|
||||
let response3 = proto::OpenBufferResponse {
|
||||
buffer_id: 2,
|
||||
buffer: Some(proto::Buffer {
|
||||
id: 2,
|
||||
content: "path/two content".to_string(),
|
||||
history: vec![],
|
||||
}),
|
||||
@@ -453,8 +453,8 @@ mod tests {
|
||||
path: "path/one".to_string(),
|
||||
};
|
||||
let response4 = proto::OpenBufferResponse {
|
||||
buffer_id: 1,
|
||||
buffer: Some(proto::Buffer {
|
||||
id: 1,
|
||||
content: "path/one content".to_string(),
|
||||
history: vec![],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user