debugger/tasks: Remove TaskType enum (#29208)

Closes #ISSUE

Release Notes:

- N/A

---------

Co-authored-by: Cole Miller <m@cole-miller.net>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
Piotr Osiewicz 2025-04-26 01:44:56 +02:00 committed by GitHub
parent 053fafa90e
commit 67615b968b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 1272 additions and 1114 deletions

View file

@ -543,6 +543,7 @@ message DebugLaunchRequest {
string program = 1;
optional string cwd = 2;
repeated string args = 3;
map<string, string> env = 4;
}
message DebugAttachRequest {
@ -558,7 +559,7 @@ message DapModuleId {
message GetDebugAdapterBinary {
uint64 project_id = 1;
DebugTaskDefinition task = 2;
DebugTaskDefinition definition = 2;
}
message DebugAdapterBinary {
@ -575,8 +576,32 @@ message DebugAdapterBinary {
}
}
message RunDebugLocator {
message RunDebugLocators {
uint64 project_id = 1;
string locator = 2;
DebugTaskDefinition task = 3;
SpawnInTerminal build_command = 2;
}
message DebugRequest {
oneof request {
DebugLaunchRequest debug_launch_request = 1;
DebugAttachRequest debug_attach_request = 2;
}
}
message DebugScenario {
string label = 1;
string adapter = 2;
reserved 3;
DebugRequest request = 4;
optional TcpHost connection = 5;
optional bool stop_on_entry = 6;
optional string configuration = 7;
}
message SpawnInTerminal {
string label = 1;
string command = 2;
repeated string args = 3;
map<string, string> env = 4;
optional string cwd = 5;
}

View file

@ -148,4 +148,5 @@ enum LocalSettingsKind {
Settings = 0;
Tasks = 1;
Editorconfig = 2;
Debug = 3;
}

View file

@ -377,8 +377,8 @@ message Envelope {
GetDebugAdapterBinary get_debug_adapter_binary = 339;
DebugAdapterBinary debug_adapter_binary = 340;
RunDebugLocator run_debug_locator = 341;
DebugTaskDefinition debug_task_definition = 342; // current max
RunDebugLocators run_debug_locators = 341;
DebugRequest debug_request = 342; // current max
}
reserved 87 to 88;

View file

@ -298,8 +298,8 @@ messages!(
(GitInit, Background),
(GetDebugAdapterBinary, Background),
(DebugAdapterBinary, Background),
(RunDebugLocator, Background),
(DebugTaskDefinition, Background),
(RunDebugLocators, Background),
(DebugRequest, Background),
);
request_messages!(
@ -456,7 +456,7 @@ request_messages!(
(GitInit, Ack),
(ToggleBreakpoint, Ack),
(GetDebugAdapterBinary, DebugAdapterBinary),
(RunDebugLocator, DebugTaskDefinition),
(RunDebugLocators, DebugRequest),
);
entity_messages!(
@ -576,7 +576,7 @@ entity_messages!(
GitInit,
BreakpointsForFile,
ToggleBreakpoint,
RunDebugLocator,
RunDebugLocators,
GetDebugAdapterBinary,
);