mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
fix #128044
This commit is contained in:
@@ -845,9 +845,11 @@ function asTerminalIcon(iconPath?: vscode.Uri | { light: vscode.Uri; dark: vscod
|
||||
if (!iconPath) {
|
||||
return undefined;
|
||||
}
|
||||
if (!('id' in iconPath)) {
|
||||
|
||||
if (typeof iconPath === 'string' || !('id' in iconPath)) {
|
||||
return iconPath;
|
||||
}
|
||||
|
||||
return {
|
||||
id: iconPath.id,
|
||||
color: iconPath.color as ThemeColor
|
||||
|
||||
Reference in New Issue
Block a user