aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/req.rs
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-11-17 18:47:50 +0000
committerEdwin Cheng <[email protected]>2019-11-19 13:49:06 +0000
commit3ccd05fedc46796f793295901a8619492256468e (patch)
tree018f46fca85c4d2e0ef4b73fa3971166e65de3e2 /crates/ra_lsp_server/src/req.rs
parentd2782ab1c1ec0b9f2ac2131859a9ee880f97bc12 (diff)
Add recursive expand in vscode
Diffstat (limited to 'crates/ra_lsp_server/src/req.rs')
-rw-r--r--crates/ra_lsp_server/src/req.rs15
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
48pub enum ExpandMacro {}
49
50impl 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")]
58pub struct ExpandMacroParams {
59 pub text_document: TextDocumentIdentifier,
60 pub position: Option<Position>,
61}
62
48pub enum SelectionRangeRequest {} 63pub enum SelectionRangeRequest {}
49 64
50impl Request for SelectionRangeRequest { 65impl Request for SelectionRangeRequest {