Skip to content

Commit 3f1f3a8

Browse files
bors[bot]matklad
andauthored
Merge #4090
4090: Fix config naming r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 0f8ae29 + 9e16e2b commit 3f1f3a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl Config {
118118
self.client_caps = client_caps;
119119

120120
set(value, "/withSysroot", &mut self.with_sysroot);
121-
set(value, "/featureFlags/lsp.diagnostics", &mut self.publish_diagnostics);
121+
set(value, "/diagnostics/enable", &mut self.publish_diagnostics);
122122
set(value, "/lruCapacity", &mut self.lru_capacity);
123123
self.files.watcher = match get(value, "/files/watcher") {
124124
Some("client") => FilesWatcher::Client,
@@ -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)