Adds the user's active file in the IDE to the footer (#4154)

This commit is contained in:
Shreya Keshive
2025-07-15 10:19:59 -04:00
committed by GitHub
parent 97cc1e6418
commit b09bc66560
7 changed files with 287 additions and 4 deletions

View File

@@ -868,7 +868,7 @@ describe('loadCliConfig ideMode', () => {
expect(config.getIdeMode()).toBe(false);
});
it('should add __ide_server when ideMode is true', async () => {
it('should add _ide_server when ideMode is true', async () => {
process.argv = ['node', 'script.js', '--ide-mode'];
const argv = await parseArguments();
process.env.TERM_PROGRAM = 'vscode';

View File

@@ -18,6 +18,7 @@ import {
FileDiscoveryService,
TelemetryTarget,
MCPServerConfig,
IDE_SERVER_NAME,
} from '@google/gemini-cli-core';
import { Settings } from './settings.js';
@@ -285,7 +286,7 @@ export async function loadCliConfig(
}
if (ideMode) {
mcpServers['_ide_server'] = new MCPServerConfig(
mcpServers[IDE_SERVER_NAME] = new MCPServerConfig(
undefined, // command
undefined, // args
undefined, // env