Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent duplicate reason(#186206) #187985

Merged
merged 3 commits into from
Jul 17, 2023
Merged

Conversation

yshaojun
Copy link
Contributor

Fix #186206

I spent times to find a way removing duplicate lineDecorations, but later I realize they are not so "duplicate", it's useful when two unicode characters come together, for example:
Screen Shot 2023-07-15 at 23 12 53

So I choose preventing duplicate reasons as a solution.

@hediet hediet added this to the July 2023 milestone Jul 17, 2023
@@ -429,6 +429,7 @@ export class UnicodeHighlighterHoverParticipant implements IEditorHoverParticipa
}

const result: MarkdownHover[] = [];
const existedReason = new Map<string, boolean>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use a set for this!

Copy link
Member

@hediet hediet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Left a comment.

@yshaojun
Copy link
Contributor Author

Done. 😄

@hediet hediet merged commit e529771 into microsoft:main Jul 17, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emoji ascii warning showing up twice
3 participants