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

CancellationTokenSource disposed in AbstractExtensionMethodImportCompletionProvider.cs #58932

Closed
KirillOsenkov opened this issue Jan 18, 2022 · 0 comments · Fixed by #59125
Closed
Assignees
Labels

Comments

@KirillOsenkov
Copy link
Member

Version Used:
17.0.0

Steps to Reproduce:

  1. Use a lightbulb for importing extension methods

Under unknown conditions we get an exception:

System.ObjectDisposedException: The CancellationTokenSource has been disposed.
   at void System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
   at Task Microsoft.CodeAnalysis.Completion.Providers.AbstractExtensionMethodImportCompletionProvider.AddCompletionItemsAsync(CompletionContext completionContext, SyntaxContext syntaxContext, HashSet<string> namespaceInScope, bool isExpandedCompletion, CancellationToken cancellationToken)+() => { } in C:/Roslyn/src/Features/Core/Portable/Completion/Providers/ImportCompletionProvider/AbstractExtensionMethodImportCompletionProvider.cs:line 50
   at bool System.Threading.ThreadPoolWorkQueue.Dispatch()

@genlu

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 18, 2022
@KirillOsenkov KirillOsenkov removed the untriaged Issues and PRs which have not yet been triaged by a lead label Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants