Use robot icon in terminal and panels; update banner icon

This commit is contained in:
Saoud Rizwan
2024-09-08 11:35:46 -04:00
parent 2c91bafe1e
commit 076acf736e
8 changed files with 16 additions and 5 deletions

View File

@@ -36,4 +36,7 @@ webview-ui/node_modules/**
!node_modules/@vscode/codicons/dist/codicon.ttf !node_modules/@vscode/codicons/dist/codicon.ttf
# Include default themes JSON files used in getTheme # Include default themes JSON files used in getTheme
!src/utils/default-themes/** !src/utils/default-themes/**
# Include icons
!icons/**

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

BIN
icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
icons/robot_panel_dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

BIN
icons/robot_panel_light.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

View File

@@ -3,7 +3,11 @@
"displayName": "Claude Dev", "displayName": "Claude Dev",
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.", "description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
"version": "1.5.34", "version": "1.5.34",
"icon": "icon.png", "icon": "icons/icon.png",
"galleryBanner": {
"color": "#C1DCEA",
"theme": "light"
},
"engines": { "engines": {
"vscode": "^1.84.0" "vscode": "^1.84.0"
}, },

View File

@@ -67,7 +67,11 @@ export function activate(context: vscode.ExtensionContext) {
localResourceRoots: [context.extensionUri], localResourceRoots: [context.extensionUri],
}) })
// TODO: use better svg icon with light and dark variants (see https://stackoverflow.com/questions/58365687/vscode-extension-iconpath) // TODO: use better svg icon with light and dark variants (see https://stackoverflow.com/questions/58365687/vscode-extension-iconpath)
panel.iconPath = vscode.Uri.joinPath(context.extensionUri, "icon.png")
panel.iconPath = {
light: vscode.Uri.joinPath(context.extensionUri, "icons", "robot_panel_light.png"),
dark: vscode.Uri.joinPath(context.extensionUri, "icons", "robot_panel_dark.png"),
}
tabProvider.resolveWebviewView(panel) tabProvider.resolveWebviewView(panel)
// Lock the editor group so clicking on files doesn't open them over the panel // Lock the editor group so clicking on files doesn't open them over the panel

View File

@@ -44,7 +44,6 @@ console.log('Unretrieved output:', unretrievedOutput);
*/ */
export class TerminalManager { export class TerminalManager {
private static readonly TERMINAL_NAME = "Claude Dev"
private terminals: TerminalInfo[] = [] private terminals: TerminalInfo[] = []
private processes: Map<number, TerminalProcess> = new Map() private processes: Map<number, TerminalProcess> = new Map()
private context: vscode.ExtensionContext private context: vscode.ExtensionContext
@@ -127,8 +126,9 @@ export class TerminalManager {
} }
const newTerminal = vscode.window.createTerminal({ const newTerminal = vscode.window.createTerminal({
name: `${TerminalManager.TERMINAL_NAME} ${this.nextTerminalId}`, name: "Claude Dev",
cwd: cwd, cwd: cwd,
iconPath: new vscode.ThemeIcon("robot"),
}) })
const newTerminalInfo: TerminalInfo = { const newTerminalInfo: TerminalInfo = {
terminal: newTerminal, terminal: newTerminal,