aboutsummaryrefslogtreecommitdiff
path: root/codeless/server/src/req.rs
blob: ee4a786c745a859c4816be18d9d6477771b6d915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use languageserver_types::{TextDocumentIdentifier, Range};

pub use languageserver_types::{
    request::*, notification::*,
    InitializeResult,
};

pub enum SyntaxTree {}

impl Request for SyntaxTree {
    type Params = SyntaxTreeParams;
    type Result = String;
    const METHOD: &'static str = "m/syntaxTree";
}

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct SyntaxTreeParams {
    pub text_document: TextDocumentIdentifier
}

pub enum ExtendSelection {}

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct ExtendSelectionParams {
    pub text_document: TextDocumentIdentifier,
    pub selections: Vec<Range>,
}


pub struct ExtendSelectionResult {
    pub selections: Vec<Range>,
}