From c6f4e8de5eb194723612ca5db83321f35f8d281e Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 2 Mar 2020 11:52:46 -0500 Subject: lsp-types 0.72 --- crates/ra_cargo_watch/Cargo.toml | 2 +- crates/rust-analyzer/Cargo.toml | 2 +- crates/rust-analyzer/src/req.rs | 18 +++++++++--------- crates/rust-analyzer/src/semantic_tokens.rs | 3 --- 4 files changed, 11 insertions(+), 14 deletions(-) (limited to 'crates') diff --git a/crates/ra_cargo_watch/Cargo.toml b/crates/ra_cargo_watch/Cargo.toml index 1fdbffea1..731d50371 100644 --- a/crates/ra_cargo_watch/Cargo.toml +++ b/crates/ra_cargo_watch/Cargo.toml @@ -6,7 +6,7 @@ authors = ["rust-analyzer developers"] [dependencies] crossbeam-channel = "0.4.0" -lsp-types = { version = "0.71.0", features = ["proposed"] } +lsp-types = { version = "0.72.0", features = ["proposed"] } log = "0.4.8" cargo_metadata = "0.9.1" serde_json = "1.0.48" diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index d00545121..b14ebb268 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -20,7 +20,7 @@ globset = "0.4.4" itertools = "0.8.2" jod-thread = "0.1.0" log = "0.4.8" -lsp-types = { version = "0.71.0", features = ["proposed"] } +lsp-types = { version = "0.72.0", features = ["proposed"] } parking_lot = "0.10.0" pico-args = "0.3.1" rand = { version = "0.7.3", features = ["small_rng"] } diff --git a/crates/rust-analyzer/src/req.rs b/crates/rust-analyzer/src/req.rs index fd6aef597..a3efe3b9f 100644 --- a/crates/rust-analyzer/src/req.rs +++ b/crates/rust-analyzer/src/req.rs @@ -42,14 +42,14 @@ impl Request for SyntaxTree { const METHOD: &'static str = "rust-analyzer/syntaxTree"; } -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct SyntaxTreeParams { pub text_document: TextDocumentIdentifier, pub range: Option, } -#[derive(Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct ExpandedMacro { pub name: String, @@ -64,7 +64,7 @@ impl Request for ExpandMacro { const METHOD: &'static str = "rust-analyzer/expandMacro"; } -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct ExpandMacroParams { pub text_document: TextDocumentIdentifier, @@ -79,7 +79,7 @@ impl Request for FindMatchingBrace { const METHOD: &'static str = "rust-analyzer/findMatchingBrace"; } -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct FindMatchingBraceParams { pub text_document: TextDocumentIdentifier, @@ -101,14 +101,14 @@ impl Notification for PublishDecorations { const METHOD: &'static str = "rust-analyzer/publishDecorations"; } -#[derive(Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct PublishDecorationsParams { pub uri: Url, pub decorations: Vec, } -#[derive(Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct Decoration { pub range: Range, @@ -132,7 +132,7 @@ impl Request for JoinLines { const METHOD: &'static str = "rust-analyzer/joinLines"; } -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct JoinLinesParams { pub text_document: TextDocumentIdentifier, @@ -162,7 +162,7 @@ pub struct RunnablesParams { pub position: Option, } -#[derive(Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct Runnable { pub range: Range, @@ -173,7 +173,7 @@ pub struct Runnable { pub cwd: Option, } -#[derive(Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct SourceChange { pub label: String, diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs index 1b146e4d8..d9ba77050 100644 --- a/crates/rust-analyzer/src/semantic_tokens.rs +++ b/crates/rust-analyzer/src/semantic_tokens.rs @@ -49,12 +49,9 @@ pub(crate) const SUPPORTED_MODIFIERS: &[SemanticTokenModifier] = &[ SemanticTokenModifier::DOCUMENTATION, SemanticTokenModifier::DECLARATION, SemanticTokenModifier::DEFINITION, - SemanticTokenModifier::REFERENCE, SemanticTokenModifier::STATIC, SemanticTokenModifier::ABSTRACT, SemanticTokenModifier::DEPRECATED, - SemanticTokenModifier::ASYNC, - SemanticTokenModifier::VOLATILE, SemanticTokenModifier::READONLY, CONSTANT, MUTABLE, -- cgit v1.2.3