aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/req.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/src/req.rs')
-rw-r--r--crates/server/src/req.rs16
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
122pub enum JoinLines {}
123
124impl 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")]
132pub struct JoinLinesParams {
133 pub text_document: TextDocumentIdentifier,
134 pub range: Range,
135}