From b3c77cfd83910f8dd6f210a625214dcf67c433c6 Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Sat, 4 Apr 2020 15:34:29 -0700 Subject: [PATCH] Update lsp-types dependency --- Cargo.lock | 6 +++--- src/langserver/Cargo.toml | 2 +- src/langserver/extras.rs | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c5e1220d..94157b4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -380,7 +380,7 @@ dependencies = [ "jsonrpc-core 14.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", - "lsp-types 0.70.0 (registry+https://github.com/rust-lang/crates.io-index)", + "lsp-types 0.73.0 (registry+https://github.com/rust-lang/crates.io-index)", "petgraph 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", @@ -925,7 +925,7 @@ dependencies = [ [[package]] name = "lsp-types" -version = "0.70.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "base64 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2115,7 +2115,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum lock_api 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "79b2de95ecb4691949fea4716ca53cdbcfccb2c612e19644a8bad05edcf9f47b" "checksum lodepng 2.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "40ed9859b15e009b494528f32ad054c5baf67afabf3c05d27973ea151563d430" "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" -"checksum lsp-types 0.70.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ef197b24cb3f12fc3984667a505691fec9d683204ddff56f12b2d1940e09a988" +"checksum lsp-types 0.73.0 (registry+https://github.com/rust-lang/crates.io-index)" = "93d0cf64ea141b43d9e055f6b9df13f0bce32b103d84237509ce0a571ab9b159" "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" "checksum maplit 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" "checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" diff --git a/src/langserver/Cargo.toml b/src/langserver/Cargo.toml index a97e357c..b2ab43d9 100644 --- a/src/langserver/Cargo.toml +++ b/src/langserver/Cargo.toml @@ -14,7 +14,7 @@ serde = "1.0.27" serde_json = "1.0.10" serde_derive = "1.0.27" jsonrpc-core = "14.0.3" -lsp-types = "0.70.0" +lsp-types = "0.73.0" dreammaker = { path = "../dreammaker" } dreamchecker = { path = "../dreamchecker" } interval-tree = { path = "../interval-tree" } diff --git a/src/langserver/extras.rs b/src/langserver/extras.rs index 9c2cc045..cc7022ca 100644 --- a/src/langserver/extras.rs +++ b/src/langserver/extras.rs @@ -9,7 +9,7 @@ impl Notification for WindowStatus { const METHOD: &'static str = "$window/status"; type Params = WindowStatusParams; } -#[derive(Debug, Default, Serialize)] +#[derive(Debug, Default, Serialize, Deserialize)] pub struct WindowStatusParams { pub environment: Option, pub tasks: Vec, @@ -20,11 +20,11 @@ impl Notification for ObjectTree { const METHOD: &'static str = "experimental/dreammaker/objectTree"; type Params = ObjectTreeParams; } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct ObjectTreeParams { pub root: ObjectTreeType, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct ObjectTreeType { pub name: String, pub kind: SymbolKind, @@ -33,14 +33,14 @@ pub struct ObjectTreeType { pub procs: Vec, pub children: Vec, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct ObjectTreeVar { pub name: String, pub kind: SymbolKind, pub location: Option, pub is_declaration: bool, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct ObjectTreeProc { pub name: String, pub kind: SymbolKind, @@ -60,11 +60,11 @@ impl Request for StartDebugger { type Params = StartDebuggerParams; type Result = StartDebuggerResult; } -#[derive(Debug, Deserialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct StartDebuggerParams { pub dreamseeker_exe: String, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct StartDebuggerResult { pub port: u16, }