mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -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 type { ExtensionUpdateInfo } from '../../config/extension.js';
|
||||||
import { getErrorMessage } from '../../utils/errors.js';
|
import { getErrorMessage } from '../../utils/errors.js';
|
||||||
import {
|
import {
|
||||||
|
emptyIcon,
|
||||||
MessageType,
|
MessageType,
|
||||||
type HistoryItemExtensionsList,
|
type HistoryItemExtensionsList,
|
||||||
type HistoryItemInfo,
|
type HistoryItemInfo,
|
||||||
@@ -226,7 +227,7 @@ async function restartAction(
|
|||||||
const infoItem: HistoryItemInfo = {
|
const infoItem: HistoryItemInfo = {
|
||||||
type: MessageType.INFO,
|
type: MessageType.INFO,
|
||||||
text: `${extensionsToRestart.length} extension${s} restarted successfully.`,
|
text: `${extensionsToRestart.length} extension${s} restarted successfully.`,
|
||||||
icon: ' ',
|
icon: emptyIcon,
|
||||||
color: theme.text.primary,
|
color: theme.text.primary,
|
||||||
};
|
};
|
||||||
context.ui.addItem(infoItem, Date.now());
|
context.ui.addItem(infoItem, Date.now());
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ export interface CompressionProps {
|
|||||||
compressionStatus: CompressionStatus | null;
|
compressionStatus: CompressionStatus | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For use when you want no icon.
|
||||||
|
*/
|
||||||
|
export const emptyIcon = ' ';
|
||||||
|
|
||||||
export interface HistoryItemBase {
|
export interface HistoryItemBase {
|
||||||
text?: string; // Text content for user/gemini/info/error messages
|
text?: string; // Text content for user/gemini/info/error messages
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user