-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dispose pooled object #50402
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Fix an issue found in #46983 (comment)