File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/services/decorations/browser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
20
20
import { hash } from 'vs/base/common/hash' ;
21
21
import { IUriIdentityService } from 'vs/workbench/services/uriIdentity/common/uriIdentity' ;
22
22
import { iconRegistry } from 'vs/base/common/codicons' ;
23
- import { asArray } from 'vs/base/common/arrays' ;
23
+ import { asArray , distinct } from 'vs/base/common/arrays' ;
24
24
25
25
class DecorationRule {
26
26
@@ -186,7 +186,7 @@ class DecorationStyles {
186
186
let labelClassName = rule . itemColorClassName ;
187
187
let badgeClassName = rule . itemBadgeClassName ;
188
188
let iconClassName = rule . iconBadgeClassName ;
189
- let tooltip = data . filter ( d => ! isFalsyOrWhitespace ( d . tooltip ) ) . map ( d => d . tooltip ) . join ( ' • ' ) ;
189
+ let tooltip = distinct ( data . filter ( d => ! isFalsyOrWhitespace ( d . tooltip ) ) . map ( d => d . tooltip ) ) . join ( ' • ' ) ;
190
190
let strikethrough = data . some ( d => d . strikethrough ) ;
191
191
192
192
if ( onlyChildren ) {
You can’t perform that action at this time.
0 commit comments