mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
JoinLines frontend
This commit is contained in:
parent
18918769ba
commit
8ad586a44e
5 changed files with 60 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue