aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-24 16:01:40 +0100
committerAleksey Kladov <[email protected]>2020-05-24 16:01:40 +0100
commitdec4ba80236e1be15f011fd6b2f7f0ecb151fd31 (patch)
treef218a60dfaa5acb9c2daac08114420531e413739 /crates
parent934227361623b258d833be20e464e1509cb432ad (diff)
Document some rust-analyzer specific protocol extensions
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/lsp_ext.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/crates/rust-analyzer/src/lsp_ext.rs b/crates/rust-analyzer/src/lsp_ext.rs
index b8b9e65ed..c7e31c076 100644
--- a/crates/rust-analyzer/src/lsp_ext.rs
+++ b/crates/rust-analyzer/src/lsp_ext.rs
@@ -38,13 +38,6 @@ pub struct SyntaxTreeParams {
38 pub range: Option<Range>, 38 pub range: Option<Range>,
39} 39}
40 40
41#[derive(Deserialize, Serialize, Debug)]
42#[serde(rename_all = "camelCase")]
43pub struct ExpandedMacro {
44 pub name: String,
45 pub expansion: String,
46}
47
48pub enum ExpandMacro {} 41pub enum ExpandMacro {}
49 42
50impl Request for ExpandMacro { 43impl Request for ExpandMacro {
@@ -60,6 +53,14 @@ pub struct ExpandMacroParams {
60 pub position: Option<Position>, 53 pub position: Option<Position>,
61} 54}
62 55
56#[derive(Deserialize, Serialize, Debug)]
57#[serde(rename_all = "camelCase")]
58pub struct ExpandedMacro {
59 pub name: String,
60 pub expansion: String,
61}
62
63
63pub enum MatchingBrace {} 64pub enum MatchingBrace {}
64 65
65impl Request for MatchingBrace { 66impl Request for MatchingBrace {