mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Tolerate strings again (fixes #110432)
This commit is contained in:
@@ -448,7 +448,11 @@ function getIconUris(iconPath: QuickInputButton['iconPath']): { dark: URI, light
|
||||
}
|
||||
const dark = getDarkIconUri(iconPath as URI | { light: URI; dark: URI; });
|
||||
const light = getLightIconUri(iconPath as URI | { light: URI; dark: URI; });
|
||||
return { dark, light };
|
||||
// Tolerate strings: https://github.com/microsoft/vscode/issues/110432#issuecomment-726144556
|
||||
return {
|
||||
dark: typeof dark === 'string' ? URI.file(dark) : dark,
|
||||
light: typeof light === 'string' ? URI.file(light) : light
|
||||
};
|
||||
}
|
||||
|
||||
function getLightIconUri(iconPath: URI | { light: URI; dark: URI; }) {
|
||||
|
||||
Reference in New Issue
Block a user