[cleanup] rename info message property 'icon' to 'prefix' (#12743)

This commit is contained in:
Jacob MacDonald
2025-11-07 16:07:33 -08:00
committed by GitHub
parent bafbcbbe8b
commit 9116cf2bab
2 changed files with 7 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import { debugLogger, listExtensions } from '@google/gemini-cli-core';
import type { ExtensionUpdateInfo } from '../../config/extension.js';
import { getErrorMessage } from '../../utils/errors.js';
import {
emptyIcon,
MessageType,
type HistoryItemExtensionsList,
type HistoryItemInfo,
@@ -226,7 +227,7 @@ async function restartAction(
const infoItem: HistoryItemInfo = {
type: MessageType.INFO,
text: `${extensionsToRestart.length} extension${s} restarted successfully.`,
icon: ' ',
icon: emptyIcon,
color: theme.text.primary,
};
context.ui.addItem(infoItem, Date.now());

View File

@@ -81,6 +81,11 @@ export interface CompressionProps {
compressionStatus: CompressionStatus | null;
}
/**
* For use when you want no icon.
*/
export const emptyIcon = ' ';
export interface HistoryItemBase {
text?: string; // Text content for user/gemini/info/error messages
}