feat: 修改链接ide之前的判断逻辑,检测是否安装过ide扩展

This commit is contained in:
刘伟光 2025-12-22 11:22:51 +08:00
parent 0c14f4ce08
commit 43e0815def
2 changed files with 9 additions and 4 deletions

View file

@ -74,9 +74,9 @@ 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
? `If you select Yes, the CLI will have access to your open files and display diffs directly in ${
ideName ?? 'your editor'
}.`
? `The IDE extension appears to be already installed. 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 ${
ideName ?? 'your editor'
}.`;