code-server/packages/protocol/src/proto/client.proto

48 lines
982 B
Protocol Buffer

syntax = "proto3";
import "node.proto";
import "vscode.proto";
// Messages that the client can send to the server.
message ClientMessage {
oneof msg {
// node.proto
Method method = 20;
Ping ping = 21;
}
}
// Messages that the server can send to the client.
message ServerMessage {
oneof msg {
// node.proto
Method.Fail fail = 13;
Method.Success success = 14;
Event event = 19;
Callback callback = 22;
Pong pong = 18;
WorkingInit init = 16;
// vscode.proto
SharedProcessActive shared_process_active = 17;
}
}
message WorkingInit {
string home_directory = 1;
string tmp_directory = 2;
string data_directory = 3;
string working_directory = 4;
enum OperatingSystem {
Windows = 0;
Linux = 1;
Mac = 2;
}
OperatingSystem operating_system = 5;
string shell = 6;
string builtin_extensions_dir = 7;
string extensions_directory = 8;
repeated string extra_extension_directories = 9;
repeated string extra_builtin_extension_directories = 10;
}