feat: Optimize the issue where an error message indicating unfriendliness occurs after executing the ideinstall command in the sandbox environment

This commit is contained in:
刘伟光 2025-12-17 13:38:38 +08:00
parent e274b4469a
commit 6ca54beba2
2 changed files with 21 additions and 7 deletions

View file

@ -191,6 +191,17 @@ export const ideCommand = async (): Promise<SlashCommand> => {
kind: CommandKind.BUILT_IN,
action: async (context) => {
const installer = getIdeInstaller(currentIDE);
const isSandBox = !!process.env['SANDBOX'];
if (isSandBox) {
context.ui.addItem(
{
type: 'info',
text: `IDE integration needs to be installed on the host. If you have already installed it, you can directly connect the ide`,
},
Date.now(),
);
return;
}
if (!installer) {
context.ui.addItem(
{