Files
qwen-code/packages/vscode-ide-companion
yiliang114 9cc48f12da feat(vscode-ide-companion): 改进消息排序和显示逻辑
- 添加时间戳支持,确保消息按时间顺序排列
- 更新工具调用处理逻辑,自动添加和保留时间戳
- 修改消息渲染逻辑,将所有类型的消息合并排序后统一渲染
- 优化完成的工具调用显示,修复显示顺序问题
- 调整进行中的工具调用显示,统一到消息流中展示
- 移除重复的计划展示逻辑,避免最新块重复出现
- 重构消息处理和渲染代码,提高可维护性
2025-11-28 09:55:06 +08:00
..
2025-07-22 23:26:01 +08:00
2025-08-19 18:20:40 +08:00
2025-09-15 20:59:35 +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.