about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code
diff options
context:
space:
mode:
authorTavo Annus <tavo.annus@gmail.com>2024-05-08 18:03:38 +0300
committerTavo Annus <tavo.annus@gmail.com>2024-05-08 19:46:33 +0300
commit8ef19e777a3e0094bebce76d0d9ae5a751c04335 (patch)
treefd342479a71faae9fcfb733f07250cd35f77fd1d /src/tools/rust-analyzer/editors/code
parentf9f1d3140f5d4078bf7832ce5a83bfa6100f8778 (diff)
downloadrust-8ef19e777a3e0094bebce76d0d9ae5a751c04335.tar.gz
rust-8ef19e777a3e0094bebce76d0d9ae5a751c04335.zip
Make term search fuel configurable
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
-rw-r--r--src/tools/rust-analyzer/editors/code/package.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json
index c4bbb7932e7..6e4fedd992c 100644
--- a/src/tools/rust-analyzer/editors/code/package.json
+++ b/src/tools/rust-analyzer/editors/code/package.json
@@ -534,6 +534,12 @@
                         "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
                     ]
                 },
+                "rust-analyzer.assist.termSearch.fuel": {
+                    "markdownDescription": "Term search fuel in \"units of work\" for assists (Defaults to 400).",
+                    "default": 400,
+                    "type": "integer",
+                    "minimum": 0
+                },
                 "rust-analyzer.cachePriming.enable": {
                     "markdownDescription": "Warm up caches on project load.",
                     "default": true,
@@ -930,6 +936,12 @@
                     "default": false,
                     "type": "boolean"
                 },
+                "rust-analyzer.completion.termSearch.fuel": {
+                    "markdownDescription": "Term search fuel in \"units of work\" for autocompletion (Defaults to 200).",
+                    "default": 200,
+                    "type": "integer",
+                    "minimum": 0
+                },
                 "rust-analyzer.diagnostics.disabled": {
                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
                     "default": [],