From e18fa5e261ab52418dda11625c68c9a61cdf36ed Mon Sep 17 00:00:00 2001 From: andrepimenta Date: Wed, 3 Dec 2025 00:41:53 +0000 Subject: [PATCH] Improve terminal and UI experience MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Open all terminals in editor area (first column) instead of panel - Update login message to mention Claude plan (Pro/Max) and API key - Hide "Claude Code Chat" title when window is very small (<350px) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/extension.ts | 21 +++++++++++++++------ src/script.ts | 2 +- src/ui-styles.ts | 6 ++++++ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 42ece42..28fbdeb 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1148,7 +1148,10 @@ class ClaudeChatProvider { const claudePath = config.get('wsl.claudePath', '/usr/local/bin/claude'); // Open terminal and run claude login - const terminal = vscode.window.createTerminal('Claude Login'); + const terminal = vscode.window.createTerminal({ + name: 'Claude Login', + location: { viewColumn: vscode.ViewColumn.One } + }); if (wslEnabled) { terminal.sendText(`wsl -d ${wslDistro} ${nodePath} --no-warnings --enable-source-maps ${claudePath}`); } else { @@ -1158,14 +1161,14 @@ class ClaudeChatProvider { // Show info message vscode.window.showInformationMessage( - 'Please login to Claude in the terminal, then come back to this chat to continue.', + 'Please login with your Claude plan or API key in the terminal, then come back to this chat.', 'OK' ); // Send message to UI about terminal this._postMessage({ type: 'terminalOpened', - data: `Please login to Claude in the terminal, then come back to this chat to continue.`, + data: `Please login with your Claude plan or API key in the terminal, then come back to this chat.`, }); } @@ -2684,7 +2687,10 @@ class ClaudeChatProvider { } // Create terminal with the claude /model command - const terminal = vscode.window.createTerminal('Claude Model Selection'); + const terminal = vscode.window.createTerminal({ + name: 'Claude Model Selection', + location: { viewColumn: vscode.ViewColumn.One } + }); if (wslEnabled) { terminal.sendText(`wsl -d ${wslDistro} ${nodePath} --no-warnings --enable-source-maps ${claudePath} ${args.join(' ')}`); } else { @@ -2708,7 +2714,7 @@ class ClaudeChatProvider { private _openUsageTerminal(usageType: string): void { const terminal = vscode.window.createTerminal({ name: 'Claude Usage', - location: vscode.TerminalLocation.Editor + location: { viewColumn: vscode.ViewColumn.One } }); if (usageType === 'plan') { @@ -2744,7 +2750,10 @@ class ClaudeChatProvider { } // Create terminal with the claude command - const terminal = vscode.window.createTerminal(`Claude /${command}`); + const terminal = vscode.window.createTerminal({ + name: `Claude /${command}`, + location: { viewColumn: vscode.ViewColumn.One } + }); if (wslEnabled) { terminal.sendText(`wsl -d ${wslDistro} ${nodePath} --no-warnings --enable-source-maps ${claudePath} ${args.join(' ')}`); } else { diff --git a/src/script.ts b/src/script.ts index 69e829c..0c98ddb 100644 --- a/src/script.ts +++ b/src/script.ts @@ -2248,7 +2248,7 @@ const getScript = (isTelemetryEnabled: boolean) => `