Skip to content

Commit da656c2

Browse files
edgardmessiasJohnstonCode
authored andcommitted
fix: Fixed svn status letter in file explorer (#419)
1 parent fb68745 commit da656c2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/resource.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,21 @@ export class Resource implements SourceControlResourceState {
246246
const abbreviation = this.letter;
247247
const color = this.color;
248248
const priority = this.priority;
249-
return {
249+
const decoration: DecorationData = {
250250
bubble: true,
251251
source: "svn.resource",
252252
title,
253253
abbreviation,
254254
color,
255255
priority
256256
};
257+
258+
/**
259+
* @note Set letter in explorer for VSCode >= 1.27
260+
* In VSCode 1.27 has renamed the abbreviation to letter
261+
*/
262+
(decoration as any).letter = abbreviation;
263+
264+
return decoration;
257265
}
258266
}

0 commit comments

Comments
 (0)