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

46 lines
873 B
Protocol Buffer
Raw Normal View History

2019-01-11 19:33:44 +00:00
syntax = "proto3";
import "node.proto";
import "vscode.proto";
2019-01-11 19:33:44 +00:00
// Messages that the client can send to the server.
2019-01-11 19:33:44 +00:00
message ClientMessage {
oneof msg {
// node.proto
Method method = 20;
Ping ping = 21;
}
2019-01-11 19:33:44 +00:00
}
// Messages that the server can send to the client.
2019-01-11 19:33:44 +00:00
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;
}