Unnamed repository; edit this file 'description' to name the repository.
Enable attribute proc macros by default
Laurențiu Nicola 2021-09-27
parent 009e6ce · commit 81891f7
-rw-r--r--crates/rust-analyzer/src/config.rs2
-rw-r--r--docs/user/generated_config.adoc2
-rw-r--r--editors/code/package.json2
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 8f02082f3e..6c09833368 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -143,7 +143,7 @@ config_data! {
diagnostics_warningsAsInfo: Vec<String> = "[]",
/// Expand attribute macros.
- experimental_procAttrMacros: bool = "false",
+ experimental_procAttrMacros: bool = "true",
/// Controls file watching implementation.
files_watcher: String = "\"client\"",
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index 5e7b722226..768216fed9 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -191,7 +191,7 @@ List of warnings that should be displayed with info severity.
The warnings will be indicated by a blue squiggly underline in code
and a blue icon in the `Problems Panel`.
--
-[[rust-analyzer.experimental.procAttrMacros]]rust-analyzer.experimental.procAttrMacros (default: `false`)::
+[[rust-analyzer.experimental.procAttrMacros]]rust-analyzer.experimental.procAttrMacros (default: `true`)::
+
--
Expand attribute macros.
diff --git a/editors/code/package.json b/editors/code/package.json
index 541293ff12..a9593024d4 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -641,7 +641,7 @@
},
"rust-analyzer.experimental.procAttrMacros": {
"markdownDescription": "Expand attribute macros.",
- "default": false,
+ "default": true,
"type": "boolean"
},
"rust-analyzer.files.watcher": {