From 58dc57c855c6923155c80a0332dd3126f687fa38 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 23 Jul 2026 03:29:31 +0800 Subject: feat: add section-aware TOML key lookup for rust-analyzer config Make TOML key lookups in `mlint install` commands aware of the `[rust-analyzer]` section boundaries. Introduce a shared TOML section parsing utility and refactor `find_key_value` and `find_table_header` into section-scoped equivalents (`find_key_in_section`, `build_override_insert`). Also add a build script to copy `.run/rust-analyzer.toml` to the workspace root if absent, and add the generated copy to `.gitignore`. --- mingling_cli/tmpls/rust-analyzer.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'mingling_cli/tmpls') diff --git a/mingling_cli/tmpls/rust-analyzer.toml b/mingling_cli/tmpls/rust-analyzer.toml index 96a96b4..26e8141 100644 --- a/mingling_cli/tmpls/rust-analyzer.toml +++ b/mingling_cli/tmpls/rust-analyzer.toml @@ -1,3 +1,4 @@ +[rust-analyzer] checkOnSave = true # Use mling with ra-lint-check for code checking -- cgit