diff --git a/packages/cli/src/ui/commands/ideCommand.ts b/packages/cli/src/ui/commands/ideCommand.ts index d05ce8127..556fa08ea 100644 --- a/packages/cli/src/ui/commands/ideCommand.ts +++ b/packages/cli/src/ui/commands/ideCommand.ts @@ -203,10 +203,23 @@ export const ideCommand = async (): Promise => { return; } if (!installer) { + const ideName = ideClient.getDetectedIdeDisplayName(); + const isVSCode = currentIDE.name === 'vscode'; + let type: 'error' | 'info' = 'error'; + let message: string; + if (isVSCode) { + // VS Code + message = `No installer is available for ${ideName}. Please install the '${QWEN_CODE_COMPANION_EXTENSION_NAME}' extension manually from the marketplace.`; + } else { + // NO VS Code + type = 'info'; + message = `Automatic installation is not supported for ${ideName}. Please install '${QWEN_CODE_COMPANION_EXTENSION_NAME}' in VS Code. If you have installed it before, please ignore the reminder and directly connect the ide extension`; + } + context.ui.addItem( { - type: 'error', - text: `No installer is available for ${ideClient.getDetectedIdeDisplayName()}. Please install the '${QWEN_CODE_COMPANION_EXTENSION_NAME}' extension manually from the marketplace.`, + type, + text: message, }, Date.now(), );