mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
fix #128044
This commit is contained in:
@@ -842,11 +842,11 @@ export class WorkerExtHostTerminalService extends BaseExtHostTerminalService {
|
||||
}
|
||||
|
||||
function asTerminalIcon(iconPath?: vscode.Uri | { light: vscode.Uri; dark: vscode.Uri } | vscode.ThemeIcon): TerminalIcon | undefined {
|
||||
if (!iconPath) {
|
||||
if (!iconPath || typeof iconPath === 'string') {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (typeof iconPath === 'string' || !('id' in iconPath)) {
|
||||
if (!('id' in iconPath)) {
|
||||
return iconPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user