Closes #39216 Note that this affects all platforms, I'm just using the prefix to make auto-cherry-picking easier. Release Notes: - Fixed shell commands run by agents failing to find installed programs in some cases.
61 lines
1.1 KiB
Protocol Buffer
61 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package zed.messages;
|
|
|
|
import "buffer.proto";
|
|
|
|
message TaskContextForLocation {
|
|
uint64 project_id = 1;
|
|
Location location = 2;
|
|
map<string, string> task_variables = 3;
|
|
}
|
|
|
|
message TaskContext {
|
|
optional string cwd = 1;
|
|
map<string, string> task_variables = 2;
|
|
map<string, string> project_env = 3;
|
|
}
|
|
|
|
message Shell {
|
|
message WithArguments {
|
|
string program = 1;
|
|
repeated string args = 2;
|
|
}
|
|
|
|
oneof shell_type {
|
|
System system = 1;
|
|
string program = 2;
|
|
WithArguments with_arguments = 3;
|
|
}
|
|
}
|
|
|
|
message System {}
|
|
|
|
enum RevealStrategy {
|
|
RevealAlways = 0;
|
|
RevealNever = 1;
|
|
}
|
|
|
|
enum HideStrategy {
|
|
HideAlways = 0;
|
|
HideNever = 1;
|
|
HideOnSuccess = 2;
|
|
}
|
|
|
|
message SpawnInTerminal {
|
|
string label = 1;
|
|
optional string command = 2;
|
|
repeated string args = 3;
|
|
map<string, string> env = 4;
|
|
optional string cwd = 5;
|
|
}
|
|
|
|
message GetDirectoryEnvironment {
|
|
uint64 project_id = 1;
|
|
Shell shell = 2;
|
|
string directory = 3;
|
|
}
|
|
|
|
message DirectoryEnvironment {
|
|
map<string, string> environment = 1;
|
|
}
|