mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Drop support for old extendSelection API
Emacs now handles this via native LSP request
dc86bbb227
This commit is contained in:
parent
cce31580e1
commit
13eddd7c49
4 changed files with 4 additions and 73 deletions
|
@ -43,27 +43,6 @@ pub struct SyntaxTreeParams {
|
|||
pub range: Option<Range>,
|
||||
}
|
||||
|
||||
pub enum ExtendSelection {}
|
||||
|
||||
impl Request for ExtendSelection {
|
||||
type Params = ExtendSelectionParams;
|
||||
type Result = ExtendSelectionResult;
|
||||
const METHOD: &'static str = "rust-analyzer/extendSelection";
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ExtendSelectionParams {
|
||||
pub text_document: TextDocumentIdentifier,
|
||||
pub selections: Vec<Range>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ExtendSelectionResult {
|
||||
pub selections: Vec<Range>,
|
||||
}
|
||||
|
||||
pub enum SelectionRangeRequest {}
|
||||
|
||||
impl Request for SelectionRangeRequest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue