Additional IDE integration polishes (#5985)

This commit is contained in:
Shreya Keshive
2025-08-11 12:27:45 -04:00
committed by GitHub
parent 8dd6f04199
commit b0b12af2ce
3 changed files with 18 additions and 9 deletions

View File

@@ -72,7 +72,10 @@ function formatFileList(openFiles: File[]): string {
})
.join('\n');
return `\n\nOpen files:\n${fileList}`;
const infoMessage = `
(Note: The file list is limited to a number of recently accessed files within your workspace and only includes local files on disk)`;
return `\n\nOpen files:\n${fileList}\n${infoMessage}`;
}
async function getIdeStatusMessageWithFiles(ideClient: IdeClient): Promise<{
@@ -128,7 +131,8 @@ export const ideCommand = (config: Config | null): SlashCommand | null => {
messageType: 'error',
content: `IDE integration is not supported in your current environment. To use this feature, run Gemini CLI in one of these supported IDEs: ${Object.values(
DetectedIde,
).map((ide) => getIdeDisplayName(ide))}
)
.map((ide) => getIdeDisplayName(ide))
.join(', ')}`,
}) as const,
};