fix(patch): cherry-pick 45faf4d to release/v0.34.0-preview.0-pr-22148 [CONFLICTS]#22174
Conversation
# Conflicts: # packages/cli/src/config/extension-manager.test.ts
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request, a cherry-pick from a previous fix, addresses an issue where custom themes provided by extensions were not registered early enough during the application startup. The changes ensure that themes from active extensions are registered immediately upon loading, making them available for use, while also preventing redundant registrations. This PR currently has merge conflicts that require manual resolution. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request cherry-picks a fix to register extension themes earlier in the application lifecycle, at load time rather than at start time. The changes to the extension manager and theme manager appear correct and are supported by new tests. However, there is a critical unresolved merge conflict in the test file packages/cli/src/config/extension-manager.test.ts that must be resolved before this PR can be merged.
| <<<<<<< HEAD | ||
| import { getRealPath } from '@google/gemini-cli-core'; | ||
| import type { MergedSettings } from './settings.js'; | ||
| ======= | ||
| import { getRealPath, type CustomTheme } from '@google/gemini-cli-core'; | ||
| >>>>>>> 45faf4d31 (fix: register themes on extension load not start (#22148)) |
There was a problem hiding this comment.
This file contains unresolved merge conflict markers. This will prevent the code from compiling and must be resolved. Both CustomTheme from the incoming change and MergedSettings from the base branch are used in this file, so the imports need to be combined.
import { getRealPath, type CustomTheme } from '@google/gemini-cli-core';
import type { MergedSettings } from './settings.js';There was a problem hiding this comment.
Code Review
This pull request introduces a change to register extension themes earlier in the startup process. However, it has left unresolved merge conflict markers in packages/cli/src/config/extension-manager.test.ts. This is a critical issue that will prevent the code from compiling and must be fixed. The rest of the changes appear to be logically sound and include appropriate tests.
| <<<<<<< HEAD | ||
| import { getRealPath } from '@google/gemini-cli-core'; | ||
| import type { MergedSettings } from './settings.js'; | ||
| ======= | ||
| import { getRealPath, type CustomTheme } from '@google/gemini-cli-core'; | ||
| >>>>>>> 45faf4d31 (fix: register themes on extension load not start (#22148)) |
There was a problem hiding this comment.
This file contains unresolved merge conflict markers. This will cause the code to fail to compile and must be resolved before merging. Please remove the conflict markers and combine the imports as needed.
import { getRealPath, type CustomTheme } from '@google/gemini-cli-core';
import type { MergedSettings } from './settings.js';|
Size Change: +603 B (0%) Total Size: 26.5 MB ℹ️ View Unchanged
|
This PR automatically cherry-picks commit 45faf4d to patch version v0.34.0-preview.0 in the preview release to create version 0.34.0-preview.1.
This cherry-pick resulted in merge conflicts that need manual resolution.
🔧 Next Steps:
📋 Files with conflicts:
The commit has been created with conflict markers for easier manual resolution.
🚨 Important: