Remove old LSP definitions (#37995)
Last time MultiLspQuery was used in Zed was 0.201.x and Nightly is of 0.205.x version, hence it's time to clean up the old code. Release Notes: - N/A
This commit is contained in:
@@ -175,9 +175,6 @@ messages!(
|
||||
(ReorderChannel, Foreground),
|
||||
(LspQuery, Background),
|
||||
(LspQueryResponse, Background),
|
||||
// todo(lsp) remove after Zed Stable hits v0.204.x
|
||||
(MultiLspQuery, Background),
|
||||
(MultiLspQueryResponse, Background),
|
||||
(OnTypeFormatting, Background),
|
||||
(OnTypeFormattingResponse, Background),
|
||||
(OpenBufferById, Background),
|
||||
@@ -440,8 +437,6 @@ request_messages!(
|
||||
(SetRoomParticipantRole, Ack),
|
||||
(BlameBuffer, BlameBufferResponse),
|
||||
(RejoinRemoteProjects, RejoinRemoteProjectsResponse),
|
||||
// todo(lsp) remove after Zed Stable hits v0.204.x
|
||||
(MultiLspQuery, MultiLspQueryResponse),
|
||||
(LspQuery, Ack),
|
||||
(LspQueryResponse, Ack),
|
||||
(RestartLanguageServers, Ack),
|
||||
@@ -557,8 +552,6 @@ entity_messages!(
|
||||
LoadCommitDiff,
|
||||
LspQuery,
|
||||
LspQueryResponse,
|
||||
// todo(lsp) remove after Zed Stable hits v0.204.x
|
||||
MultiLspQuery,
|
||||
RestartLanguageServers,
|
||||
StopLanguageServers,
|
||||
OnTypeFormatting,
|
||||
@@ -844,26 +837,6 @@ impl LspQuery {
|
||||
}
|
||||
}
|
||||
|
||||
// todo(lsp) remove after Zed Stable hits v0.204.x
|
||||
impl MultiLspQuery {
|
||||
pub fn request_str(&self) -> &str {
|
||||
match self.request {
|
||||
Some(multi_lsp_query::Request::GetHover(_)) => "GetHover",
|
||||
Some(multi_lsp_query::Request::GetCodeActions(_)) => "GetCodeActions",
|
||||
Some(multi_lsp_query::Request::GetSignatureHelp(_)) => "GetSignatureHelp",
|
||||
Some(multi_lsp_query::Request::GetCodeLens(_)) => "GetCodeLens",
|
||||
Some(multi_lsp_query::Request::GetDocumentDiagnostics(_)) => "GetDocumentDiagnostics",
|
||||
Some(multi_lsp_query::Request::GetDocumentColor(_)) => "GetDocumentColor",
|
||||
Some(multi_lsp_query::Request::GetDefinition(_)) => "GetDefinition",
|
||||
Some(multi_lsp_query::Request::GetDeclaration(_)) => "GetDeclaration",
|
||||
Some(multi_lsp_query::Request::GetTypeDefinition(_)) => "GetTypeDefinition",
|
||||
Some(multi_lsp_query::Request::GetImplementation(_)) => "GetImplementation",
|
||||
Some(multi_lsp_query::Request::GetReferences(_)) => "GetReferences",
|
||||
None => "<unknown>",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user