qwen-code/packages/vscode-ide-companion
tanzhenxin b60ae42d10
Merge pull request #1474 from QwenLM/fix/vscode-run
fix(vscode-ide-companion): Fix cross-platform CLI terminal execution
2026-01-13 17:38:28 +08:00
..
.vscode pre-release commit 2025-07-22 23:26:01 +08:00
assets fix: qwen vscode extension 2025-08-19 18:20:40 +08:00
scripts fix(vscode-ide-companion): optimize stream termination handling and fix style layering issues 2025-12-15 22:41:38 +08:00
src Merge pull request #1474 from QwenLM/fix/vscode-run 2026-01-13 17:38:28 +08:00
.vscodeignore bundle cli in vscode 2025-12-13 20:56:18 +08:00
development.md Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
esbuild.js chore(vscode-ide-companion): refactor directory structure 2025-12-08 00:54:26 +08:00
eslint.config.mjs fix(vscode-ide-companion): 修复 Tailwind 可重用组件类和 ESLint 配置, 调整 ChatHeader 按钮样式 2025-11-29 18:13:50 +08:00
LICENSE Upload VSIX of companion VS Code extension (#4241) 2025-07-15 18:44:03 +00:00
NOTICES.txt Add Gemini provider, remove legacy Google OAuth, and tune generation defaults 2025-12-19 16:26:54 +08:00
package.json fix(vscode-ide-companion): fix positional argument problem due to special handling for Electron app of yargs 2026-01-10 19:52:25 +08:00
postcss.config.js refactor(vscode): 重构消息排序和展示逻辑 2025-11-28 22:35:31 +08:00
README.md docs(vscode-ide-companion): update vscode extension readme 2026-01-13 00:14:57 +08:00
tailwind.config.js chore(vscode-ide-companion): refactor directory structure 2025-12-08 00:54:26 +08:00
tsconfig.json fix(vscode-ide-companion): 优化缓存 Qwen Chat UI 的登录态机制 2025-11-17 20:00:52 +08:00
vitest.config.ts refactor(vscode-ide-companion): Refactoring the project structure and updating dependencies 2025-11-29 13:16:58 +08:00

Qwen Code Companion

Seamlessly integrate Qwen Code into Visual Studio Code with native IDE features and an intuitive interface. This extension bundles everything you need to get started immediately.

Demo

Features

  • Native IDE experience: Dedicated Qwen Code sidebar panel accessed via the Qwen icon
  • Native diffing: Review, edit, and accept changes in VS Code's diff view
  • Auto-accept edits mode: Automatically apply Qwen's changes as they're made
  • File management: @-mention files or attach files and images using the system file picker
  • Conversation history & multiple sessions: Access past conversations and run multiple sessions simultaneously
  • Open file & selection context: Share active files, cursor position, and selections for more precise help

Requirements

  • Visual Studio Code 1.85.0 or newer

Installation

  1. Install from the VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=qwenlm.qwen-code-vscode-ide-companion

  2. Two ways to use

    • Chat panel: Click the Qwen icon in the Activity Bar, or run Qwen Code: Open from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
    • Terminal session (classic): Run Qwen Code: Run to launch a session in the integrated terminal (bundled CLI).

Development and Debugging

To debug and develop this extension locally:

  1. Clone the repository

    git clone https://github.com/QwenLM/qwen-code.git
    cd qwen-code
    
  2. Install dependencies

    npm install
    # or if using pnpm
    pnpm install
    
  3. Start debugging

    code .  # Open the project root in VS Code
    
    • Open the packages/vscode-ide-companion/src/extension.ts file
    • Open Debug panel (Ctrl+Shift+D or Cmd+Shift+D)
    • Select "Launch Companion VS Code Extension" from the debug dropdown
    • Press F5 to launch Extension Development Host
  4. Make changes and reload

    • Edit the source code in the original VS Code window
    • To see your changes, reload the Extension Development Host window by:
      • Pressing Ctrl+R (Windows/Linux) or Cmd+R (macOS)
      • Or clicking the "Reload" button in the debug toolbar
  5. View logs and debug output

    • Open the Debug Console in the original VS Code window to see extension logs
    • In the Extension Development Host window, open Developer Tools with Help > Toggle Developer Tools to see webview logs

Build for Production

To build the extension for distribution:

npm run compile
# or
pnpm run compile

To package the extension as a VSIX file:

npx vsce package
# or
pnpm vsce package

Terms of Service and Privacy Notice

By installing this extension, you agree to the Terms of Service.