Remove old syntax highlighting

This commit is contained in:
Aleksey Kladov
2020-04-02 09:52:27 +02:00
parent f696df379a
commit 309fc70155
9 changed files with 3 additions and 359 deletions

View File

@@ -1,6 +1,6 @@
//! Defines `rust-analyzer` specific custom messages.
use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url};
use lsp_types::{Location, Position, Range, TextDocumentIdentifier};
use rustc_hash::FxHashMap;
use serde::{Deserialize, Serialize};
@@ -86,36 +86,6 @@ pub struct FindMatchingBraceParams {
pub offsets: Vec<Position>,
}
pub enum DecorationsRequest {}
impl Request for DecorationsRequest {
type Params = TextDocumentIdentifier;
type Result = Vec<Decoration>;
const METHOD: &'static str = "rust-analyzer/decorationsRequest";
}
pub enum PublishDecorations {}
impl Notification for PublishDecorations {
type Params = PublishDecorationsParams;
const METHOD: &'static str = "rust-analyzer/publishDecorations";
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct PublishDecorationsParams {
pub uri: Url,
pub decorations: Vec<Decoration>,
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct Decoration {
pub range: Range,
pub tag: String,
pub binding_hash: Option<String>,
}
pub enum ParentModule {}
impl Request for ParentModule {