about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-30 12:20:24 +0000
committerbors <bors@rust-lang.org>2023-03-30 12:20:24 +0000
commitfc8c5139fad70696f99d27e2ca1f59e4672fd017 (patch)
treedadd4bf5a8f9bfc811e754c92d9c7dccf0f08889 /editors/code/package.json
parentb915eb32fafd465ed02b27f1ba03c2d9b35dc87d (diff)
parent5616d91b732134fca2142f858a01aefb1eb2681e (diff)
downloadrust-fc8c5139fad70696f99d27e2ca1f59e4672fd017.tar.gz
rust-fc8c5139fad70696f99d27e2ca1f59e4672fd017.zip
Auto merge of #14410 - Veykril:query-lru-capacities, r=Veykril
internal: Add config to specifiy lru capacities for all queries

Might help figuring out what queries should be limited by LRU by default, as currently we only limit `parse`, `parse_macro_expansion` and `macro_expand`.
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 0332fe30251..81fa97269a9 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -1252,6 +1252,11 @@
                     ],
                     "minimum": 0
                 },
+                "rust-analyzer.lru.query.capacities": {
+                    "markdownDescription": "Sets the LRU capacity of the specified queries.",
+                    "default": {},
+                    "type": "object"
+                },
                 "rust-analyzer.notifications.cargoTomlNotFound": {
                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
                     "default": true,