Skip to content

Commit 9e16e2b

Browse files
committed
Align the name of proc-macro enabling flag
We use `enable`, not `enabled` elsewhere
1 parent d436bee commit 9e16e2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl Config {
132132
set(value, "/cargo/features", &mut self.cargo.features);
133133
set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check);
134134

135-
match get::<bool>(value, "/procMacro/enabled") {
135+
match get::<bool>(value, "/procMacro/enable") {
136136
Some(true) => {
137137
if let Ok(path) = std::env::current_exe() {
138138
self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()]));

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@
389389
"type": "boolean",
390390
"default": false
391391
},
392-
"rust-analyzer.procMacro.enabled": {
392+
"rust-analyzer.procMacro.enable": {
393393
"description": "Enable Proc macro support, cargo.loadOutDirsFromCheck must be enabled.",
394394
"type": "boolean",
395395
"default": false

0 commit comments

Comments
 (0)