diff options
author | DJMcNab <[email protected]> | 2018-12-20 12:16:44 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-20 12:16:44 +0000 |
commit | 70e5fb98a007c49e2f2a1d2f58c31008385c9754 (patch) | |
tree | 5ad243f686f1278308ad4cb55f02fbfe2a96e794 /crates/ra_lsp_server/src | |
parent | 39861a4e15cf8cfed69f336c7178bb4b480fe3a3 (diff) |
Disable highlighting if disabled
This isn't working properly because we don't dynamically disable or enable it
TODO: work out why highlighting can be enabled mid session.
TODO: Improve settings handling
Diffstat (limited to 'crates/ra_lsp_server/src')
-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 | }, |