mirror of
https://github.com/cline/cline.git
synced 2026-09-24 23:20:16 +08:00
* Add DiffService to the host bridge. Add a new diff service with a method to open the diff view for a file. On vscode, we will not use the hostbridge for opening the diff editor, so the vscode handler just throws an error. * Update diff.proto * Fix proto import
26 lines
616 B
Protocol Buffer
26 lines
616 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package host;
|
|
option java_package = "bot.cline.host.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "common.proto";
|
|
|
|
// Provides methods for diff views.
|
|
service DiffService {
|
|
// Open the diff view/editor.
|
|
rpc openDiff(OpenDiffRequest) returns (OpenDiffResponse);
|
|
}
|
|
|
|
message OpenDiffRequest {
|
|
optional cline.Metadata metadata = 1;
|
|
// The absolute path of the document being edited.
|
|
optional string path = 2;
|
|
// The new content for the file.
|
|
optional string content = 3;
|
|
}
|
|
|
|
message OpenDiffResponse {
|
|
// TODO(sfortune) the host needs to return a unique id for the diff editor.
|
|
}
|