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

@@ -67,7 +67,11 @@ export function activate(context: vscode.ExtensionContext) {
localResourceRoots: [context.extensionUri],
})
// 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)
// Lock the editor group so clicking on files doesn't open them over the panel