Add messages and handlers for RPC log toggling
Co-authored-by: Ben Kunkle <ben@zed.dev> Co-authored-by: Lukas Wirth <lukas@zed.dev>
This commit is contained in:
parent
848d1101d3
commit
ab5da3af83
8 changed files with 94 additions and 51 deletions
|
@ -963,3 +963,16 @@ message MultiLspQuery {
|
|||
message MultiLspQueryResponse {
|
||||
repeated LspResponse responses = 1;
|
||||
}
|
||||
|
||||
message ToggleLspLogs {
|
||||
uint64 project_id = 1;
|
||||
LogType log_type = 2;
|
||||
uint64 server_id = 3;
|
||||
bool enabled = 4;
|
||||
|
||||
enum LogType {
|
||||
LOG = 0;
|
||||
TRACE = 1;
|
||||
RPC = 2;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -396,7 +396,8 @@ message Envelope {
|
|||
GitCloneResponse git_clone_response = 364;
|
||||
|
||||
LspQuery lsp_query = 365;
|
||||
LspQueryResponse lsp_query_response = 366; // current max
|
||||
LspQueryResponse lsp_query_response = 366;
|
||||
ToggleLspLogs toggle_lsp_logs = 367; // current max
|
||||
}
|
||||
|
||||
reserved 87 to 88;
|
||||
|
|
|
@ -312,7 +312,8 @@ messages!(
|
|||
(GetDefaultBranch, Background),
|
||||
(GetDefaultBranchResponse, Background),
|
||||
(GitClone, Background),
|
||||
(GitCloneResponse, Background)
|
||||
(GitCloneResponse, Background),
|
||||
(ToggleLspLogs, Background),
|
||||
);
|
||||
|
||||
request_messages!(
|
||||
|
@ -481,7 +482,8 @@ request_messages!(
|
|||
(GetDocumentDiagnostics, GetDocumentDiagnosticsResponse),
|
||||
(PullWorkspaceDiagnostics, Ack),
|
||||
(GetDefaultBranch, GetDefaultBranchResponse),
|
||||
(GitClone, GitCloneResponse)
|
||||
(GitClone, GitCloneResponse),
|
||||
(ToggleLspLogs, Ack),
|
||||
);
|
||||
|
||||
lsp_messages!(
|
||||
|
@ -612,6 +614,7 @@ entity_messages!(
|
|||
GitReset,
|
||||
GitCheckoutFiles,
|
||||
SetIndexText,
|
||||
ToggleLspLogs,
|
||||
|
||||
Push,
|
||||
Fetch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue