fix(vscode-ide-companion): fix bugs & support terminal mode operation

This commit is contained in:
yiliang114
2025-12-06 00:30:22 +08:00
parent be44e7af56
commit 96b275a756
27 changed files with 515 additions and 626 deletions

View File

@@ -5,6 +5,7 @@
*/
import * as vscode from 'vscode';
import { openChatCommand } from '../commands/index.js';
/**
* Find the editor group immediately to the left of the Qwen chat webview.
@@ -90,7 +91,7 @@ export async function ensureLeftGroupOfChatWebview(): Promise<
// Make the chat group active by revealing the panel
try {
await vscode.commands.executeCommand('qwenCode.openChat');
await vscode.commands.executeCommand(openChatCommand);
} catch {
// Best-effort; continue even if this fails
}
@@ -105,7 +106,7 @@ export async function ensureLeftGroupOfChatWebview(): Promise<
// Restore focus to chat (optional), so we don't disturb user focus
try {
await vscode.commands.executeCommand('qwenCode.openChat');
await vscode.commands.executeCommand(openChatCommand);
} catch {
// Ignore
}