diff options
author | Mikhail Modin <[email protected]> | 2020-02-10 22:45:38 +0000 |
---|---|---|
committer | Mikhail Modin <[email protected]> | 2020-02-14 21:45:42 +0000 |
commit | f8f454ab5c19c6e7d91b3a4e6bb63fb9bf5f2673 (patch) | |
tree | e80fbf31a2f69916c86b5569da4f673e7818d8ec /crates/ra_lsp_server/src/req.rs | |
parent | 6fb36dfdcb91f67c28f51e51514ebe420ec3aa22 (diff) |
Init implementation of structural search replace
Diffstat (limited to 'crates/ra_lsp_server/src/req.rs')
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index dc327f53d..7ff7f60b3 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs | |||
@@ -206,3 +206,16 @@ pub struct InlayHint { | |||
206 | pub kind: InlayKind, | 206 | pub kind: InlayKind, |
207 | pub label: String, | 207 | pub label: String, |
208 | } | 208 | } |
209 | |||
210 | pub enum Ssr {} | ||
211 | |||
212 | impl Request for Ssr { | ||
213 | type Params = SsrParams; | ||
214 | type Result = SourceChange; | ||
215 | const METHOD: &'static str = "rust-analyzer/ssr"; | ||
216 | } | ||
217 | |||
218 | #[derive(Debug, Deserialize, Serialize)] | ||
219 | pub struct SsrParams { | ||
220 | pub arg: String, | ||
221 | } | ||