Skip to content

Conversation

@BlockHand
Copy link
Contributor

@BlockHand BlockHand commented Dec 17, 2025

It occurs after executing the ideinstall command in a sandbox environment and after executing install in a no VS Code editor

TLDR

After selecting the IDE link in the sandbox environment and performing the /ide installation, or directly installing the plugin on an ide other than VS Code on the host machine, an error prompt message will be reported, which is not user-friendly

Dive Deeper

Because it is impossible to install ide extensions in a sandbox environment, it will fail
Since this extension does not support installation on other ides, it will also lead to failure

Solution

  1. First in the packages/cli/SRC/UI/IdeIntegrationNudge TSX file IdeIntegrationNudge function determine whether inside the sandbox environment, if it is in a sandbox environment, you can specify a sandbox characteristic the clues
  • 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.
  1. The second modification point is that when the /ide install command is executed after selecting yes, it also checks the sandbox environment to give the specified copy prompt
  • IDE integration needs to be installed on the host. If you have already installed it, you can directly connect the ide
  1. Determine whether it is the VS Code editor to handle more different prompt messages
  • Automatic installation is not supported for Cursor. Please install the extension manually or install 'Qwen Code Companion' in VS Code. If you have
    installed it before, please ignore the reminder and directly connect the ide extension
  1. Check if the extension is pre-installed. If the extension is pre-installed, do not perform the operation of /ide install but directly execute /ide enable
  • The IDE extension appears to be already installed. If you select Yes, the CLI will connect to your VS Code and have access to your open │
    │ files and display diffs directly.

Reviewer Test Plan

Testing Matrix

The local image has been repackaged and verified without any issues, achieving the expected effect

🍏 🪟 🐧
npm run yes
npx
Docker yes
Podman - -
Seatbelt - -

Linked issues / bugs

Fixes #1255

Before repair

image

After repair

image image image image

@tanzhenxin tanzhenxin merged commit 570ec43 into QwenLM:main Jan 7, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qwen Code CLI incorrectly prompts to install VS Code extension when it is already installed

2 participants