mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
debugging(ui): add optional debugRainbow setting (#25088)
This commit is contained in:
@@ -202,6 +202,12 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
|
|
||||||
#### `ui`
|
#### `ui`
|
||||||
|
|
||||||
|
- **`ui.debugRainbow`** (boolean):
|
||||||
|
- **Description:** Enable debug rainbow rendering. Only useful for debugging
|
||||||
|
rendering bugs and performance issues.
|
||||||
|
- **Default:** `false`
|
||||||
|
- **Requires restart:** Yes
|
||||||
|
|
||||||
- **`ui.theme`** (string):
|
- **`ui.theme`** (string):
|
||||||
- **Description:** The color theme for the UI. See the CLI themes guide for
|
- **Description:** The color theme for the UI. See the CLI themes guide for
|
||||||
available options.
|
available options.
|
||||||
|
|||||||
@@ -439,6 +439,16 @@ const SETTINGS_SCHEMA = {
|
|||||||
description: 'User interface settings.',
|
description: 'User interface settings.',
|
||||||
showInDialog: false,
|
showInDialog: false,
|
||||||
properties: {
|
properties: {
|
||||||
|
debugRainbow: {
|
||||||
|
type: 'boolean',
|
||||||
|
label: 'Debug Rainbow',
|
||||||
|
category: 'UI',
|
||||||
|
requiresRestart: true,
|
||||||
|
default: false,
|
||||||
|
description:
|
||||||
|
'Enable debug rainbow rendering. Only useful for debugging rendering bugs and performance issues.',
|
||||||
|
showInDialog: false,
|
||||||
|
},
|
||||||
theme: {
|
theme: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
label: 'Theme',
|
label: 'Theme',
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ export async function startInteractiveUI(
|
|||||||
settings.merged.ui.incrementalRendering !== false &&
|
settings.merged.ui.incrementalRendering !== false &&
|
||||||
useAlternateBuffer &&
|
useAlternateBuffer &&
|
||||||
!isShpool,
|
!isShpool,
|
||||||
|
debugRainbow: settings.merged.ui.debugRainbow === true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -230,6 +230,13 @@
|
|||||||
"default": {},
|
"default": {},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"debugRainbow": {
|
||||||
|
"title": "Debug Rainbow",
|
||||||
|
"description": "Enable debug rainbow rendering. Only useful for debugging rendering bugs and performance issues.",
|
||||||
|
"markdownDescription": "Enable debug rainbow rendering. Only useful for debugging rendering bugs and performance issues.\n\n- Category: `UI`\n- Requires restart: `yes`\n- Default: `false`",
|
||||||
|
"default": false,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"title": "Theme",
|
"title": "Theme",
|
||||||
"description": "The color theme for the UI. See the CLI themes guide for available options.",
|
"description": "The color theme for the UI. See the CLI themes guide for available options.",
|
||||||
|
|||||||
Reference in New Issue
Block a user