mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 05:24:34 -07:00
refactor(ide): replace DetectedIde enum with IDE_DEFINITIONS object (#8698)
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import type { DetectedIde } from '@google/gemini-cli-core';
|
||||
import { getIdeInfo } from '@google/gemini-cli-core';
|
||||
import type { IdeInfo } from '@google/gemini-cli-core';
|
||||
import { Box, Text } from 'ink';
|
||||
import type { RadioSelectItem } from './components/shared/RadioButtonSelect.js';
|
||||
import { RadioButtonSelect } from './components/shared/RadioButtonSelect.js';
|
||||
@@ -18,7 +17,7 @@ export type IdeIntegrationNudgeResult = {
|
||||
};
|
||||
|
||||
interface IdeIntegrationNudgeProps {
|
||||
ide: DetectedIde;
|
||||
ide: IdeInfo;
|
||||
onComplete: (result: IdeIntegrationNudgeResult) => void;
|
||||
}
|
||||
|
||||
@@ -38,7 +37,7 @@ export function IdeIntegrationNudge({
|
||||
{ isActive: true },
|
||||
);
|
||||
|
||||
const { displayName: ideName } = getIdeInfo(ide);
|
||||
const { displayName: ideName } = ide;
|
||||
// Assume extension is already installed if the env variables are set.
|
||||
const isExtensionPreInstalled =
|
||||
!!process.env['GEMINI_CLI_IDE_SERVER_PORT'] &&
|
||||
|
||||
Reference in New Issue
Block a user