From d6403c67ee18971829736b78cca354f088f0aeee Mon Sep 17 00:00:00 2001 From: christine betts Date: Thu, 14 Aug 2025 14:57:36 +0000 Subject: [ide-mode] Suggest the extension name in the installation messages (#6182) --- packages/core/src/ide/ide-installer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/core/src/ide/ide-installer.ts') diff --git a/packages/core/src/ide/ide-installer.ts b/packages/core/src/ide/ide-installer.ts index 121e0089..7b9ead77 100644 --- a/packages/core/src/ide/ide-installer.ts +++ b/packages/core/src/ide/ide-installer.ts @@ -10,6 +10,7 @@ import * as path from 'path'; import * as fs from 'fs'; import * as os from 'os'; import { DetectedIde } from './detect-ide.js'; +import { GEMINI_CLI_COMPANION_EXTENSION_NAME } from './constants.js'; const VSCODE_COMMAND = process.platform === 'win32' ? 'code.cmd' : 'code'; @@ -96,7 +97,7 @@ class VsCodeInstaller implements IdeInstaller { if (!commandPath) { return { success: false, - message: `VS Code CLI not found. Please ensure 'code' is in your system's PATH. For help, see https://code.visualstudio.com/docs/configure/command-line#_code-is-not-recognized-as-an-internal-or-external-command. You can also install the companion extension manually from the VS Code marketplace.`, + message: `VS Code CLI not found. Please ensure 'code' is in your system's PATH. For help, see https://code.visualstudio.com/docs/configure/command-line#_code-is-not-recognized-as-an-internal-or-external-command. You can also install the '${GEMINI_CLI_COMPANION_EXTENSION_NAME}' extension manually from the VS Code marketplace.`, }; } @@ -111,7 +112,7 @@ class VsCodeInstaller implements IdeInstaller { } catch (_error) { return { success: false, - message: `Failed to install VS Code companion extension. Please try installing it manually from the VS Code marketplace.`, + message: `Failed to install VS Code companion extension. Please try installing '${GEMINI_CLI_COMPANION_EXTENSION_NAME}' manually from the VS Code extension marketplace.`, }; } } -- cgit v1.2.3