diff options
author | Aleksey Kladov <[email protected]> | 2021-03-15 15:19:08 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-03-15 15:19:08 +0000 |
commit | 469b739c2845581ca741917b42ee8ac1d5b8f2ba (patch) | |
tree | f5cc7acdee11bc92d1cd53d8d50a4f26fa8a7849 | |
parent | 5f6d71cf0c41ac063bdb35dffe7ec713b1dbac42 (diff) |
Enable proc-macros by default
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 2 | ||||
-rw-r--r-- | docs/user/generated_config.adoc | 2 | ||||
-rw-r--r-- | 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! { | |||
172 | notifications_cargoTomlNotFound: bool = "true", | 172 | notifications_cargoTomlNotFound: bool = "true", |
173 | 173 | ||
174 | /// Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`. | 174 | /// Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`. |
175 | procMacro_enable: bool = "false", | 175 | procMacro_enable: bool = "true", |
176 | /// Internal config, path to proc-macro server executable (typically, | 176 | /// Internal config, path to proc-macro server executable (typically, |
177 | /// this is rust-analyzer itself, but we override this in tests). | 177 | /// this is rust-analyzer itself, but we override this in tests). |
178 | procMacro_server: Option<PathBuf> = "null", | 178 | procMacro_server: Option<PathBuf> = "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. | |||
276 | -- | 276 | -- |
277 | Whether to show `can't find Cargo.toml` error message. | 277 | Whether to show `can't find Cargo.toml` error message. |
278 | -- | 278 | -- |
279 | [[rust-analyzer.procMacro.enable]]rust-analyzer.procMacro.enable (default: `false`):: | 279 | [[rust-analyzer.procMacro.enable]]rust-analyzer.procMacro.enable (default: `true`):: |
280 | + | 280 | + |
281 | -- | 281 | -- |
282 | Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`. | 282 | 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 @@ | |||
690 | }, | 690 | }, |
691 | "rust-analyzer.procMacro.enable": { | 691 | "rust-analyzer.procMacro.enable": { |
692 | "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.", | 692 | "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.", |
693 | "default": false, | 693 | "default": true, |
694 | "type": "boolean" | 694 | "type": "boolean" |
695 | }, | 695 | }, |
696 | "rust-analyzer.procMacro.server": { | 696 | "rust-analyzer.procMacro.server": { |