JoinLines frontend

This commit is contained in:
Aleksey Kladov 2018-08-23 22:14:51 +03:00
parent 18918769ba
commit 8ad586a44e
5 changed files with 60 additions and 1 deletions

View file

@ -10,6 +10,7 @@ pub use languageserver_types::{
ExecuteCommandParams,
WorkspaceSymbolParams,
TextDocumentPositionParams,
TextEdit,
};
@ -117,3 +118,18 @@ impl Request for ParentModule {
type Result = Vec<Location>;
const METHOD: &'static str = "m/parentModule";
}
pub enum JoinLines {}
impl Request for JoinLines {
type Params = JoinLinesParams;
type Result = Vec<TextEdit>;
const METHOD: &'static str = "m/joinLines";
}
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct JoinLinesParams {
pub text_document: TextDocumentIdentifier,
pub range: Range,
}