Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Tune rust-analyzer for the large workspace (#5272)

Sean Aye78ad0ad87c8d
diff --git a/.helix/languages.toml b/.helix/languages.toml
index 339192dbf5..6536144475 100644
--- a/.helix/languages.toml
+++ b/.helix/languages.toml
@@ -1,8 +1,22 @@
-# Keep rust-analyzer from loading or checking the Cloudflare Worker crate,
-# which must be compiled for WebAssembly rather than the host target.
-
+# Keep rust-analyzer from loading the Cloudflare Worker crate, which must be
+# compiled for WebAssembly rather than the host target.
[language-server.rust-analyzer.config.files]
exclude = ["services/sync-service"]
+# Avoid eagerly analyzing all 224 workspace packages at startup. Crates are
+# analyzed on demand as their files and symbols are used.
+[language-server.rust-analyzer.config.cachePriming]
+enable = false
+
+# Load and check default targets instead of every test, example, and benchmark.
+[language-server.rust-analyzer.config.cargo]
+allTargets = false
+
+# Check the package containing the active file instead of the entire workspace.
[language-server.rust-analyzer.config.check]
-extraArgs = ["--exclude", "sync_service"]
+allTargets = false
+workspace = false
+
+# Retain fewer parsed syntax trees to reduce steady-state memory use.
+[language-server.rust-analyzer.config.lru]
+capacity = 64