diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_lsp_server/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index 4497980e5..4877e4827 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs | |||
@@ -27,7 +27,7 @@ fn main() -> Result<()> { | |||
27 | #[derive(Deserialize)] | 27 | #[derive(Deserialize)] |
28 | #[serde(rename_all = "camelCase")] | 28 | #[serde(rename_all = "camelCase")] |
29 | struct InitializationOptions { | 29 | struct InitializationOptions { |
30 | publish_decorations: bool, | 30 | highlighting_on: bool, |
31 | } | 31 | } |
32 | 32 | ||
33 | fn main_inner() -> Result<()> { | 33 | fn main_inner() -> Result<()> { |
@@ -45,7 +45,7 @@ fn main_inner() -> Result<()> { | |||
45 | let publish_decorations = params | 45 | let publish_decorations = params |
46 | .initialization_options | 46 | .initialization_options |
47 | .and_then(|v| InitializationOptions::deserialize(v).ok()) | 47 | .and_then(|v| InitializationOptions::deserialize(v).ok()) |
48 | .map(|it| it.publish_decorations) | 48 | .map(|it| it.highlighting_on) |
49 | == Some(true); | 49 | == Some(true); |
50 | ra_lsp_server::main_loop(false, root, publish_decorations, r, s) | 50 | ra_lsp_server::main_loop(false, root, publish_decorations, r, s) |
51 | }, | 51 | }, |