Skip to content

Commit 9249408

Browse files
committed
Fixed status for replaced file
1 parent a9512ce commit 9249408

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/resource.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ export class Resource implements SourceControlResourceState {
182182
return "I";
183183
case Status.MODIFIED:
184184
return "M";
185+
case Status.REPLACED:
186+
return "R";
185187
case Status.UNVERSIONED:
186188
return "U";
187189
default:
@@ -192,6 +194,7 @@ export class Resource implements SourceControlResourceState {
192194
get color(): ThemeColor | undefined {
193195
switch (this.type) {
194196
case Status.MODIFIED:
197+
case Status.REPLACED:
195198
return new ThemeColor("gitDecoration.modifiedResourceForeground");
196199
case Status.DELETED:
197200
return new ThemeColor("gitDecoration.deletedResourceForeground");

0 commit comments

Comments
 (0)