diff options
author | Aleksey Kladov <[email protected]> | 2018-08-23 20:14:51 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-23 20:14:51 +0100 |
commit | 8ad586a44e2214a11c4e7d27e0d3c2d73e43f39f (patch) | |
tree | 70c553dd0231189acf0695b63688f21fb94867dc /crates/server/src/req.rs | |
parent | 18918769baf49acc4067eabdc0c3a0a98224d23f (diff) |
JoinLines frontend
Diffstat (limited to 'crates/server/src/req.rs')
-rw-r--r-- | crates/server/src/req.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/server/src/req.rs b/crates/server/src/req.rs index a8aa24629..c431deeb4 100644 --- a/crates/server/src/req.rs +++ b/crates/server/src/req.rs | |||
@@ -10,6 +10,7 @@ pub use languageserver_types::{ | |||
10 | ExecuteCommandParams, | 10 | ExecuteCommandParams, |
11 | WorkspaceSymbolParams, | 11 | WorkspaceSymbolParams, |
12 | TextDocumentPositionParams, | 12 | TextDocumentPositionParams, |
13 | TextEdit, | ||
13 | }; | 14 | }; |
14 | 15 | ||
15 | 16 | ||
@@ -117,3 +118,18 @@ impl Request for ParentModule { | |||
117 | type Result = Vec<Location>; | 118 | type Result = Vec<Location>; |
118 | const METHOD: &'static str = "m/parentModule"; | 119 | const METHOD: &'static str = "m/parentModule"; |
119 | } | 120 | } |
121 | |||
122 | pub enum JoinLines {} | ||
123 | |||
124 | impl Request for JoinLines { | ||
125 | type Params = JoinLinesParams; | ||
126 | type Result = Vec<TextEdit>; | ||
127 | const METHOD: &'static str = "m/joinLines"; | ||
128 | } | ||
129 | |||
130 | #[derive(Deserialize, Debug)] | ||
131 | #[serde(rename_all = "camelCase")] | ||
132 | pub struct JoinLinesParams { | ||
133 | pub text_document: TextDocumentIdentifier, | ||
134 | pub range: Range, | ||
135 | } | ||