feat(vscode-ide-companion): import chat chat customEditor to vscode extension folder #1056
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request: Add Chat Interface to VSCode IDE Companion
TLDR
Added Chat interface to VSCode IDE Companion with support for interactive conversations with Qwen CLI, session management, and streaming responses.
Key Changes:
Dive Deeper
New Modules:
packages/vscode-ide-companion/src/acp/AcpConnection.ts- ACP JSON-RPC protocol implementationpackages/vscode-ide-companion/src/agents/QwenAgentManager.ts- Qwen Agent lifecycle managementpackages/vscode-ide-companion/src/services/QwenSessionReader.ts- Read local Qwen session files (~/.qwen/tmp/)packages/vscode-ide-companion/src/storage/ConversationStore.ts- Conversation history persistence (VSCode GlobalState)packages/vscode-ide-companion/src/WebViewProvider.ts- WebView lifecycle managementpackages/vscode-ide-companion/src/webview/- React chat UI componentsBuild Configuration:
esbuild.jsto support dual-entry bundling (extension + webview)jsx: "react-jsx")Reviewer Test Plan
Testing Matrix
Prerequisites
npm install -g @qwen/qwen-codeTest Steps
1. Basic Functionality Test
Build Extension
cd packages/vscode-ide-companion npm run build2. Session Management Test
3. Tool Permission Test
Linked issues / bugs