about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-11-20 20:24:31 +0000
committerGitHub <noreply@github.com>2021-11-20 20:24:31 +0000
commit4566414789310acb2617543f4b50beab4bb48e06 (patch)
treee5862136a04369e32bafc8a8a6e8e855e7e48e5e /docs
parentc9c6fa8f56a2b095b5f6b7dc66a4f1db4a9a9a30 (diff)
parenta68ce62f6a33d3e5777c1d64c946e0f1d9c7f457 (diff)
downloadrust-4566414789310acb2617543f4b50beab4bb48e06.tar.gz
rust-4566414789310acb2617543f4b50beab4bb48e06.zip
Merge #10810
10810: feat: Add toggle to disable cache priming r=jonas-schievink a=lnicola

Even if it doesn't prevent the rest of the features from working, cache priming tends to be quite CPU-intensive and can make people think that the load times are worse than they actually are.

It's also less useful in Code and `rust-tools` because the inlay hints and semantic highlighting trigger quite a bit of computation assuming you have a file open in the editor.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Diffstat (limited to 'docs')
-rw-r--r--docs/user/generated_config.adoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index c7bb1bf6420..9f6f046014c 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -23,6 +23,11 @@ Group inserted imports by the https://rust-analyzer.github.io/manual.html#auto-i
 --
 Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.
 --
+[[rust-analyzer.cache.warmup]]rust-analyzer.cache.warmup (default: `true`)::
++
+--
+Warm up caches on project load.
+--
 [[rust-analyzer.callInfo.full]]rust-analyzer.callInfo.full (default: `true`)::
 +
 --