diff options
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/ide/constants.ts | 7 | ||||
| -rw-r--r-- | packages/core/src/ide/ide-installer.ts | 5 | ||||
| -rw-r--r-- | packages/core/src/index.ts | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/packages/core/src/ide/constants.ts b/packages/core/src/ide/constants.ts new file mode 100644 index 00000000..f1f066c4 --- /dev/null +++ b/packages/core/src/ide/constants.ts @@ -0,0 +1,7 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +export const GEMINI_CLI_COMPANION_EXTENSION_NAME = 'Gemini CLI Companion'; 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.`, }; } } diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index a24cddbe..e2cefddd 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -52,6 +52,7 @@ export * from './ide/ide-client.js'; export * from './ide/ideContext.js'; export * from './ide/ide-installer.js'; export { getIdeInfo, DetectedIde, IdeInfo } from './ide/detect-ide.js'; +export * from './ide/constants.js'; // Export Shell Execution Service export * from './services/shellExecutionService.js'; |
