fix(patch): cherry-pick 45faf4d to release/v0.34.0-preview.0-pr-22148 [CONFLICTS] (#22174)

Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
Co-authored-by: Christine Betts <chrstn@uw.edu>
This commit is contained in:
gemini-cli-robot
2026-03-12 10:37:08 -07:00
committed by GitHub
parent ec31811c6c
commit c56e58d7a2
3 changed files with 83 additions and 2 deletions
@@ -241,6 +241,17 @@ class ThemeManager {
}
}
/**
* Checks if themes for a given extension are already registered.
* @param extensionName The name of the extension.
* @returns True if any themes from the extension are registered.
*/
hasExtensionThemes(extensionName: string): boolean {
return Array.from(this.extensionThemes.keys()).some((name) =>
name.endsWith(`(${extensionName})`),
);
}
/**
* Clears all registered extension themes.
* This is primarily for testing purposes to reset state between tests.