diff options
| author | christine betts <[email protected]> | 2025-08-14 14:57:36 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-14 14:57:36 +0000 |
| commit | d6403c67ee18971829736b78cca354f088f0aeee (patch) | |
| tree | c397bef414a5cf705f42519fbd8870ffa300dcc4 /packages/core/src/ide/ide-installer.ts | |
| parent | 2fc1ef7d59780bae9a1705cafbd78bd2567f117e (diff) | |
[ide-mode] Suggest the extension name in the installation messages (#6182)
Diffstat (limited to 'packages/core/src/ide/ide-installer.ts')
| -rw-r--r-- | packages/core/src/ide/ide-installer.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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.`, }; } } |
