* showOpenDialogue host bridge migration * addressing comments --------- Co-authored-by: Cline Evaluation <cline@example.com>
49 lines
1.2 KiB
Protocol Buffer
49 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package host;
|
|
option java_package = "bot.cline.host.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "common.proto";
|
|
|
|
// Provides methods for working with IDE windows and editors.
|
|
service WindowService {
|
|
// Opens a text document in the editor and returns editor information.
|
|
rpc showTextDocument(ShowTextDocumentRequest) returns (TextEditorInfo);
|
|
rpc showOpenDialogue(ShowOpenDialogueRequest) returns (SelectedResources);
|
|
}
|
|
|
|
message ShowTextDocumentRequest {
|
|
cline.Metadata metadata = 1;
|
|
string path = 2;
|
|
optional ShowTextDocumentOptions options = 3;
|
|
}
|
|
|
|
// See https://code.visualstudio.com/api/references/vscode-api#TextDocumentShowOptions
|
|
message ShowTextDocumentOptions {
|
|
optional bool preview = 1;
|
|
optional bool preserve_focus = 2;
|
|
optional int32 view_column = 3;
|
|
}
|
|
|
|
message TextEditorInfo {
|
|
string document_path = 1;
|
|
optional int32 view_column = 2;
|
|
bool is_active = 3;
|
|
}
|
|
|
|
message ShowOpenDialogueRequest {
|
|
cline.Metadata metadata = 1;
|
|
optional bool can_select_many = 2;
|
|
optional string open_label = 3;
|
|
optional ShowOpenDialogueFilterOption filters = 4;
|
|
}
|
|
|
|
message ShowOpenDialogueFilterOption {
|
|
repeated string files = 1;
|
|
}
|
|
|
|
message SelectedResources {
|
|
repeated string paths = 1;
|
|
}
|