app.proto

 1syntax = "proto3";
 2package zed.messages;
 3
 4message ShutdownRemoteServer {}
 5
 6message Toast {
 7  uint64 project_id = 1;
 8  string notification_id = 2;
 9  string message = 3;
10}
11
12message HideToast {
13  uint64 project_id = 1;
14  string notification_id = 2;
15}
16
17message OpenServerSettings {
18  uint64 project_id = 1;
19}
20
21message GetCrashFiles {}
22
23message GetCrashFilesResponse {
24  repeated CrashReport crashes = 1;
25  reserved 2; // old panics
26}
27
28message CrashReport {
29  reserved 1, 2;
30  string metadata = 3;
31  bytes minidump_contents = 4;
32}
33
34message Extension {
35  string id = 1;
36  string version = 2;
37  bool dev = 3;
38}
39
40message SyncExtensions {
41  repeated Extension extensions = 1;
42}
43
44message SyncExtensionsResponse {
45  string tmp_dir = 1;
46  repeated Extension missing_extensions = 2;
47}
48
49message InstallExtension {
50  Extension extension = 1;
51  string tmp_dir = 2;
52}
53
54message AskPassRequest {
55  uint64 project_id = 1;
56  reserved 2;
57  uint64 repository_id = 3;
58  uint64 askpass_id = 4;
59  string prompt = 5;
60}
61
62message AskPassResponse {
63  string response = 1;
64}
65
66message GetRemoteProfilingData {
67  uint64 project_id = 1;
68  bool foreground_only = 2;
69}
70
71message GetRemoteProfilingDataResponse {
72  repeated RemoteProfilingThread threads = 1;
73  uint64 now_nanos = 2;
74}
75
76message RemoteProfilingThread {
77  optional string thread_name = 1;
78  uint64 thread_id = 2;
79  repeated RemoteProfilingTiming timings = 3;
80}
81
82message RemoteProfilingTiming {
83  RemoteProfilingLocation location = 1;
84  uint64 start_nanos = 2;
85  uint64 duration_nanos = 3;
86}
87
88message RemoteProfilingLocation {
89  string file = 1;
90  uint32 line = 2;
91  uint32 column = 3;
92}