rename ICommandAction.iconLocation to ICommandAction.icon

This commit is contained in:
Johannes Rieken
2019-11-29 10:03:35 +01:00
parent 91d0a62bf8
commit be257638d2
10 changed files with 29 additions and 29 deletions

View File

@@ -1090,8 +1090,8 @@ export class CodeWindow extends Disposable implements ICodeWindow {
private createTouchBarGroupSegments(items: ISerializableCommandAction[] = []): ITouchBarSegment[] {
const segments: ITouchBarSegment[] = items.map(item => {
let icon: NativeImage | undefined;
if (item.iconLocation && !ThemeIcon.isThemeIcon(item.iconLocation) && item.iconLocation?.dark?.scheme === 'file') {
icon = nativeImage.createFromPath(URI.revive(item.iconLocation.dark).fsPath);
if (item.icon && !ThemeIcon.isThemeIcon(item.icon) && item.icon?.dark?.scheme === 'file') {
icon = nativeImage.createFromPath(URI.revive(item.icon.dark).fsPath);
if (icon.isEmpty()) {
icon = undefined;
}