From 469b739c2845581ca741917b42ee8ac1d5b8f2ba Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 15 Mar 2021 18:19:08 +0300 Subject: Enable proc-macros by default --- crates/rust-analyzer/src/config.rs | 2 +- docs/user/generated_config.adoc | 2 +- editors/code/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 8af7871ac..8f541976e 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 042ba2d54..c2521289c 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 923e9b35a..a2ed9b2d5 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": { -- cgit v1.2.3