Skip to content

Commit fa952eb

Browse files
bsande6bsande6fcollonval
authored
[Fix] Ignore extensions label should only show each extension once #1070 (#1080)
* Removed repeated extensions on the ignore extensions label * Fix linter Co-authored-by: bsande6 <bsande6@g.clemson.eu> Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
1 parent 507bf9d commit fa952eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commandsAndMenu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,8 @@ export function addCommands(
10391039
const { files } = args as any as CommandArguments.IGitContextAction;
10401040
const extensions = files
10411041
.map(file => PathExt.extname(file.to))
1042-
.filter(extension => extension.length > 0);
1042+
.filter(extension => extension.length > 0)
1043+
.filter((item, index, arr) => arr.indexOf(item) === index);
10431044
return trans._n(
10441045
'Ignore %2 extension (add to .gitignore)',
10451046
'Ignore %2 extensions (add to .gitignore)',

0 commit comments

Comments
 (0)