Skip to content

Commit 52a80f8

Browse files
committed
1 parent da7dc39 commit 52a80f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/api/common/extHostTerminalService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,11 +842,11 @@ export class WorkerExtHostTerminalService extends BaseExtHostTerminalService {
842842
}
843843

844844
function asTerminalIcon(iconPath?: vscode.Uri | { light: vscode.Uri; dark: vscode.Uri } | vscode.ThemeIcon): TerminalIcon | undefined {
845-
if (!iconPath) {
845+
if (!iconPath || typeof iconPath === 'string') {
846846
return undefined;
847847
}
848848

849-
if (typeof iconPath === 'string' || !('id' in iconPath)) {
849+
if (!('id' in iconPath)) {
850850
return iconPath;
851851
}
852852

0 commit comments

Comments
 (0)