mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
feat: 兼容宿主机在不同ide上的instal提示
This commit is contained in:
parent
6ca54beba2
commit
b3b2bc6ad5
1 changed files with 15 additions and 2 deletions
|
|
@ -203,10 +203,23 @@ export const ideCommand = async (): Promise<SlashCommand> => {
|
|||
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(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue