diff --git a/crates/rust-analyzer/src/handlers/request.rs b/crates/rust-analyzer/src/handlers/request.rs index b191d8d368..aad74b7466 100644 --- a/crates/rust-analyzer/src/handlers/request.rs +++ b/crates/rust-analyzer/src/handlers/request.rs @@ -1691,7 +1691,7 @@ pub(crate) fn handle_move_item( pub(crate) fn handle_view_recursive_memory_layout( snap: GlobalStateSnapshot, - params: lsp_ext::ViewRecursiveMemoryLayoutParams, + params: lsp_types::TextDocumentPositionParams, ) -> anyhow::Result> { let _p = profile::span("view_recursive_memory_layout"); let file_id = from_proto::file_id(&snap, ¶ms.text_document.uri)?; diff --git a/crates/rust-analyzer/src/lsp_ext.rs b/crates/rust-analyzer/src/lsp_ext.rs index 39b8e84028..d0989b3230 100644 --- a/crates/rust-analyzer/src/lsp_ext.rs +++ b/crates/rust-analyzer/src/lsp_ext.rs @@ -185,18 +185,11 @@ pub struct ExpandedMacro { pub enum ViewRecursiveMemoryLayout {} impl Request for ViewRecursiveMemoryLayout { - type Params = ViewRecursiveMemoryLayoutParams; + type Params = lsp_types::TextDocumentPositionParams; type Result = Option; const METHOD: &'static str = "rust-analyzer/viewRecursiveMemoryLayout"; } -#[derive(Deserialize, Serialize, Debug)] -#[serde(rename_all = "camelCase")] -pub struct ViewRecursiveMemoryLayoutParams { - pub text_document: TextDocumentIdentifier, - pub position: Position, -} - #[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct RecursiveMemoryLayout { diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index 8655e95467..024acb8770 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@