diff options
Diffstat (limited to 'crates/ra_lsp_server/src/req.rs')
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index d25fc5726..dbc0e9624 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs | |||
@@ -45,6 +45,21 @@ pub struct SyntaxTreeParams { | |||
45 | pub range: Option<Range>, | 45 | pub range: Option<Range>, |
46 | } | 46 | } |
47 | 47 | ||
48 | pub enum ExpandMacro {} | ||
49 | |||
50 | impl Request for ExpandMacro { | ||
51 | type Params = ExpandMacroParams; | ||
52 | type Result = Option<(String, String)>; | ||
53 | const METHOD: &'static str = "rust-analyzer/expandMacro"; | ||
54 | } | ||
55 | |||
56 | #[derive(Deserialize, Debug)] | ||
57 | #[serde(rename_all = "camelCase")] | ||
58 | pub struct ExpandMacroParams { | ||
59 | pub text_document: TextDocumentIdentifier, | ||
60 | pub position: Option<Position>, | ||
61 | } | ||
62 | |||
48 | pub enum SelectionRangeRequest {} | 63 | pub enum SelectionRangeRequest {} |
49 | 64 | ||
50 | impl Request for SelectionRangeRequest { | 65 | impl Request for SelectionRangeRequest { |