mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-16 00:51:25 -07:00
[cleanup] rename info message property 'icon' to 'prefix' (#12743)
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user