提交 d5ec2ccc 编写于 作者: M Martin Aeschlimann

[icons] don't show icons if icon theme is not valid id

上级 a09f6e1c
......@@ -404,19 +404,18 @@ export class ThemeService implements IThemeService {
iconSetData = <IInternalThemeData> iconSet;
break;
}
if (iconSet.id === DEFAULT_FILE_ICONS) {
iconSetData = <IInternalThemeData> iconSet;
}
}
if (iconSetData) {
return _applyFileIcons(iconSetData);
}
return false;
});
}
}
function _applyFileIcons(data: IInternalThemeData): TPromise<boolean> {
if (!data) {
_applyRules('', fileIconRulesClassName);
return TPromise.as(true);
}
if (data.styleSheetContent) {
_applyRules(data.styleSheetContent, fileIconRulesClassName);
return TPromise.as(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册