Skip to content

Commit 8d4cd14

Browse files
committed
chore: use Set instead of Map
1 parent dd6af83 commit 8d4cd14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export class UnicodeHighlighterHoverParticipant implements IEditorHoverParticipa
429429
}
430430

431431
const result: MarkdownHover[] = [];
432-
const existedReason = new Map<string, boolean>();
432+
const existedReason = new Set<string>();
433433
let index = 300;
434434
for (const d of lineDecorations) {
435435

@@ -484,7 +484,7 @@ export class UnicodeHighlighterHoverParticipant implements IEditorHoverParticipa
484484
if (existedReason.has(reason)) {
485485
continue;
486486
}
487-
existedReason.set(reason, true);
487+
existedReason.add(reason);
488488

489489
const adjustSettingsArgs: ShowExcludeOptionsArgs = {
490490
codePoint: codePoint,

0 commit comments

Comments
 (0)