use ColorIdentifier instead of Color, define some git colors for untracked, modifed, and ignored

This commit is contained in:
Johannes Rieken
2017-10-06 11:40:24 +02:00
parent e980c39e60
commit 5c109769f0
11 changed files with 76 additions and 23 deletions

View File

@@ -182,7 +182,7 @@ class MainThreadSCMProvider implements ISCMProvider {
for (const [start, deleteCount, rawResources] of groupSlices) {
const resources = rawResources.map(rawResource => {
const [handle, sourceUri, icons, tooltip, strikeThrough, faded] = rawResource;
const [handle, sourceUri, icons, tooltip, strikeThrough, faded, color] = rawResource;
const icon = icons[0];
const iconDark = icons[1] || icon;
const decorations = {
@@ -190,7 +190,8 @@ class MainThreadSCMProvider implements ISCMProvider {
iconDark: iconDark && URI.parse(iconDark),
tooltip,
strikeThrough,
faded
faded,
color: color && color.id
};
return new MainThreadSCMResource(