mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
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
This commit is contained in:
parent
39861a4e15
commit
70e5fb98a0
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ fn main() -> Result<()> {
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
struct InitializationOptions {
|
struct InitializationOptions {
|
||||||
publish_decorations: bool,
|
highlighting_on: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main_inner() -> Result<()> {
|
fn main_inner() -> Result<()> {
|
||||||
|
@ -45,7 +45,7 @@ fn main_inner() -> Result<()> {
|
||||||
let publish_decorations = params
|
let publish_decorations = params
|
||||||
.initialization_options
|
.initialization_options
|
||||||
.and_then(|v| InitializationOptions::deserialize(v).ok())
|
.and_then(|v| InitializationOptions::deserialize(v).ok())
|
||||||
.map(|it| it.publish_decorations)
|
.map(|it| it.highlighting_on)
|
||||||
== Some(true);
|
== Some(true);
|
||||||
ra_lsp_server::main_loop(false, root, publish_decorations, r, s)
|
ra_lsp_server::main_loop(false, root, publish_decorations, r, s)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue