diff --git a/extensions/git/package.json b/extensions/git/package.json index befcfc88349..d4a9ebb0d58 100644 --- a/extensions/git/package.json +++ b/extensions/git/package.json @@ -991,6 +991,15 @@ } }, "colors": [ + { + "id": "gitDecoration.addedResourceForeground", + "description": "%colors.added%", + "defaults": { + "light": "#587c0c", + "dark": "#81b88b", + "highContrast": "#1b5225" + } + }, { "id": "gitDecoration.modifiedResourceForeground", "description": "%colors.modified%", diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json index 7f2c43dd233..9b1a2332d1f 100644 --- a/extensions/git/package.nls.json +++ b/extensions/git/package.nls.json @@ -70,6 +70,7 @@ "config.showInlineOpenFileAction": "Controls whether to show an inline Open File action in the Git changes view.", "config.inputValidation": "Controls when to show commit message input validation.", "config.detectSubmodules": "Controls whether to automatically detect git submodules.", + "colors.added": "Color for added resources.", "config.detectSubmodulesLimit": "Controls the limit of git submodules detected.", "colors.modified": "Color for modified resources.", "colors.deleted": "Color for deleted resources.", diff --git a/extensions/git/src/repository.ts b/extensions/git/src/repository.ts index 86a42815cce..5c5fd6814a3 100644 --- a/extensions/git/src/repository.ts +++ b/extensions/git/src/repository.ts @@ -217,7 +217,8 @@ export class Resource implements SourceControlResourceState { case Status.INDEX_DELETED: case Status.DELETED: return new ThemeColor('gitDecoration.deletedResourceForeground'); - case Status.INDEX_ADDED: // todo@joh - special color? + case Status.INDEX_ADDED: + return new ThemeColor('gitDecoration.addedResourceForeground'); case Status.INDEX_RENAMED: // todo@joh - special color? case Status.UNTRACKED: return new ThemeColor('gitDecoration.untrackedResourceForeground');