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

@ -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(),
);