mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Align the name of proc-macro enabling flag
We use `enable`, not `enabled` elsewhere
This commit is contained in:
parent
d436beeb04
commit
9e16e2b279
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ impl Config {
|
||||||
set(value, "/cargo/features", &mut self.cargo.features);
|
set(value, "/cargo/features", &mut self.cargo.features);
|
||||||
set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check);
|
set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check);
|
||||||
|
|
||||||
match get::<bool>(value, "/procMacro/enabled") {
|
match get::<bool>(value, "/procMacro/enable") {
|
||||||
Some(true) => {
|
Some(true) => {
|
||||||
if let Ok(path) = std::env::current_exe() {
|
if let Ok(path) = std::env::current_exe() {
|
||||||
self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()]));
|
self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()]));
|
||||||
|
|
|
@ -389,7 +389,7 @@
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"rust-analyzer.procMacro.enabled": {
|
"rust-analyzer.procMacro.enable": {
|
||||||
"description": "Enable Proc macro support, cargo.loadOutDirsFromCheck must be enabled.",
|
"description": "Enable Proc macro support, cargo.loadOutDirsFromCheck must be enabled.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
|
|
Loading…
Reference in a new issue