qwen-code/packages/vscode-ide-companion
Mingholy b7ac94ecf6
Merge pull request #1291 from QwenLM/mingholy/feat/multi-provider-support
feat: multi-provider models config support
2026-01-08 16:27:00 +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 fix: lint & ci issues 2026-01-07 22:58:09 +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 chore: bump version to 0.7.0 2026-01-08 10:21:55 +08:00
postcss.config.js refactor(vscode): 重构消息排序和展示逻辑 2025-11-28 22:35:31 +08:00
README.md test(vscode-ide-companion): registerWebviewPanelSerializer 添加 mock 实现 2025-11-20 14:31:20 +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

The Qwen Code Companion extension seamlessly integrates Qwen Code. This extension is compatible with both VS Code and VS Code forks.

Features

  • Open Editor File Context: Qwen Code gains awareness of the files you have open in your editor, providing it with a richer understanding of your project's structure and content.

  • Selection Context: Qwen Code can easily access your cursor's position and selected text within the editor, giving it valuable context directly from your current work.

  • Native Diffing: Seamlessly view, modify, and accept code changes suggested by Qwen Code directly within the editor.

  • Launch Qwen Code: Quickly start a new Qwen Code session from the Command Palette (Cmd+Shift+P or Ctrl+Shift+P) by running the "Qwen Code: Run" command.

Requirements

To use this extension, you'll need:

  • VS Code version 1.101.0 or newer
  • Qwen Code (installed separately) running within the VS Code integrated terminal

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.