mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-23 12:30:43 -07:00
Switch to a reducer for tracking update state fixing flicker issues due to continuous renders (#10280)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import type { CommandContext } from '../commands/types.js';
|
||||
import type { ExtensionUpdateAction } from '../state/extensions.js';
|
||||
|
||||
/**
|
||||
* Creates a UI context object with no-op functions.
|
||||
@@ -24,7 +25,7 @@ export function createNonInteractiveUI(): CommandContext['ui'] {
|
||||
setGeminiMdFileCount: (_count) => {},
|
||||
reloadCommands: () => {},
|
||||
extensionsUpdateState: new Map(),
|
||||
setExtensionsUpdateState: (_updateState) => {},
|
||||
dispatchExtensionStateUpdate: (_action: ExtensionUpdateAction) => {},
|
||||
addConfirmUpdateExtensionRequest: (_request) => {},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user