feat(tools): Tools settings category + re-detect for supporter binaries (T-495)
ToolsSettingsExtension adds a Tools settings category — a path field per tool (app.tools.<name>) plus a Re-detect action (tools.detect) — and keeps the live resolver in sync as paths are edited (supporterBinariesFrom). en + nl catalogs. Completes the D-104 UI surface. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vendored
+6
@@ -149,6 +149,12 @@ Future<SupporterBinaries> redetectSupporterBinaries({
|
||||
return SupporterBinaries(overrides: fresh);
|
||||
}
|
||||
|
||||
/// A resolver built from the current per-tool override keys, with no detect or
|
||||
/// marker side effects — for rebuilding [activeSupporterBinaries] live when a
|
||||
/// path is edited in settings.
|
||||
SupporterBinaries supporterBinariesFrom(Object? Function(String key) read, {List<String> tools = knownSupporterTools}) =>
|
||||
SupporterBinaries(overrides: _readOverrides(read, tools));
|
||||
|
||||
Map<String, String> _readOverrides(Object? Function(String) read, List<String> tools) {
|
||||
final overrides = <String, String>{};
|
||||
for (final t in tools) {
|
||||
|
||||
Reference in New Issue
Block a user