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

Dispose pooled object #50402

Merged
1 commit merged into from
Jan 12, 2021
Merged

Dispose pooled object #50402

1 commit merged into from
Jan 12, 2021

Conversation

genlu
Copy link
Member

@genlu genlu commented Jan 12, 2021

Fix an issue found in #46983 (comment)

@genlu genlu requested a review from a team as a code owner January 12, 2021 18:14
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@@ -509,7 +509,7 @@ private static ImmutableArray<CompletionItemWithHighlight> GetHighlightedList(Li
ImmutableArray<CompletionFilterWithState> filters)
{
// See which filters might be enabled based on the typed code
var _ = PooledHashSet<CompletionFilter>.GetInstance(out var textFilteredFilters);
using var _ = PooledHashSet<CompletionFilter>.GetInstance(out var textFilteredFilters);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't CA2000 catch such cases? Is it disabled for the repo?

Copy link
Member

@huoyaoyuan huoyaoyuan Jan 12, 2021

Choose a reason for hiding this comment

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

I never trusted CA2000 because it can't figure ownership transfer correctly.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, CA2000 is disabled for the repository.

@ghost ghost merged commit 9746373 into master Jan 12, 2021
@ghost ghost deleted the dev/gel/fixDispose branch January 12, 2021 19:33
@ghost ghost added this to the Next milestone Jan 12, 2021
@Cosifne Cosifne modified the milestones: Next, 16.9 Jan 27, 2021
@JoeRobich JoeRobich modified the milestones: 16.9, 16.9.P4 Jan 27, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants