update user messages

This commit is contained in:
tanzhenxin 2026-01-07 17:25:27 +08:00
parent 91af9bf6c8
commit bfc3bbfa9c
2 changed files with 3 additions and 15 deletions

View file

@ -74,7 +74,7 @@ export function IdeIntegrationNudge({
const installText = isInSandbox
? `Note: In sandbox environments, IDE integration requires manual setup on the host system. If you select Yes, you'll receive instructions on how to set this up.`
: isExtensionPreInstalled
? `The IDE extension appears to be already installed. If you select Yes, the CLI will connect to your ${
? `If you select Yes, the CLI will connect to your ${
ideName ?? 'editor'
} and have access to your open files and display diffs directly.`
: `If you select Yes, we'll install an extension that allows the CLI to access your open files and display diffs directly in ${

View file

@ -204,22 +204,10 @@ export const ideCommand = async (): Promise<SlashCommand> => {
}
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 the extension manually or 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,
text: message,
type: 'error',
text: `Automatic installation is not supported for ${ideName}. Please install the '${QWEN_CODE_COMPANION_EXTENSION_NAME}' extension manually from the marketplace.`,
},
Date.now(),
);