src/vs/workbench/api/common/extHostSCM.ts/getIconResource
function getIconResource(decorations?: vscode.SourceControlResourceThemableDecorations): vscode.Uri | undefined {
	if (!decorations) {
		return undefined;
	} else if (typeof decorations.iconPath === 'string') {
		return URI.file(decorations.iconPath);
	} else {
		return decorations.iconPath;
	}
}