From c7b5d6be4c694a83b87fef28fd73aea485194f73 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 8 Mar 2021 14:52:16 +0300 Subject: Make code completion "just work" in more cases --- 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 cac48e911..807fecc40 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -49,7 +49,7 @@ config_data! { cargo_features: Vec = "[]", /// Run build scripts (`build.rs`) for more precise code analysis. cargo_runBuildScripts | - cargo_loadOutDirsFromCheck: bool = "false", + cargo_loadOutDirsFromCheck: bool = "true", /// Do not activate the `default` feature. cargo_noDefaultFeatures: bool = "false", /// Compilation target (target triple). diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index e564c1427..96788bc2c 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -12,7 +12,7 @@ Activate all available features (`--all-features`). [[rust-analyzer.cargo.features]]rust-analyzer.cargo.features (default: `[]`):: List of features to activate. -[[rust-analyzer.cargo.runBuildScripts]]rust-analyzer.cargo.runBuildScripts (default: `false`):: +[[rust-analyzer.cargo.runBuildScripts]]rust-analyzer.cargo.runBuildScripts (default: `true`):: Run build scripts (`build.rs`) for more precise code analysis. [[rust-analyzer.cargo.noDefaultFeatures]]rust-analyzer.cargo.noDefaultFeatures (default: `false`):: Do not activate the `default` feature. diff --git a/editors/code/package.json b/editors/code/package.json index 176f47920..cabb2d136 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -416,7 +416,7 @@ }, "rust-analyzer.cargo.runBuildScripts": { "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.", - "default": false, + "default": true, "type": "boolean" }, "rust-analyzer.cargo.noDefaultFeatures": { -- cgit v1.2.3