Skip to content

fix: prevent duplicate reason(#186206)#187985

Merged
hediet merged 3 commits into
microsoft:mainfrom
yshaojun:fix/186206
Jul 17, 2023
Merged

fix: prevent duplicate reason(#186206)#187985
hediet merged 3 commits into
microsoft:mainfrom
yshaojun:fix/186206

Conversation

@yshaojun

Copy link
Copy Markdown
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
}

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

Copy link
Copy Markdown
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!

@hediet hediet left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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