mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 09:47:47 +00:00
fix(vscode-ide-companion): fix bugs & support terminal mode operation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user