Document some rust-analyzer specific protocol extensions

This commit is contained in:
Aleksey Kladov 2020-05-24 17:01:40 +02:00
parent 9342273616
commit dec4ba8023
2 changed files with 70 additions and 7 deletions

View file

@ -38,13 +38,6 @@ pub struct SyntaxTreeParams {
pub range: Option<Range>,
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct ExpandedMacro {
pub name: String,
pub expansion: String,
}
pub enum ExpandMacro {}
impl Request for ExpandMacro {
@ -60,6 +53,14 @@ pub struct ExpandMacroParams {
pub position: Option<Position>,
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct ExpandedMacro {
pub name: String,
pub expansion: String,
}
pub enum MatchingBrace {}
impl Request for MatchingBrace {