diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 8af7871ac4..8f541976ec 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -172,7 +172,7 @@ config_data! { notifications_cargoTomlNotFound: bool = "true", /// Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`. - procMacro_enable: bool = "false", + procMacro_enable: bool = "true", /// Internal config, path to proc-macro server executable (typically, /// this is rust-analyzer itself, but we override this in tests). procMacro_server: Option = "null", diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index 042ba2d54c..c2521289c0 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -276,7 +276,7 @@ Number of syntax trees rust-analyzer keeps in memory. Defaults to 128. -- Whether to show `can't find Cargo.toml` error message. -- -[[rust-analyzer.procMacro.enable]]rust-analyzer.procMacro.enable (default: `false`):: +[[rust-analyzer.procMacro.enable]]rust-analyzer.procMacro.enable (default: `true`):: + -- Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`. diff --git a/editors/code/package.json b/editors/code/package.json index 923e9b35a0..a2ed9b2d58 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -690,7 +690,7 @@ }, "rust-analyzer.procMacro.enable": { "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.", - "default": false, + "default": true, "type": "boolean" }, "rust-analyzer.procMacro.server": {