lsoft / SyncToAsyncExtension

A Visual Studio extension (VSIX) which creates codelenses allowed to go to sync sibling method for async methods and vice-versa.
MIT License
1 stars 0 forks source link

Remove code when Roslyn fixed the bug #6

Open lsoft opened 9 months ago

lsoft commented 9 months ago

We need to remove this list filtering:

//RoslynDocumentHelper.GetDocumentByDocumentIdAsync

            document = (await project.GetSourceGeneratedDocumentsAsync(CancellationToken.None))
                .First(d => d.Id.Equals(documentId));

and just use project.GetSourceGeneratedDocumentAsync.

Tracking issue: https://github.com/dotnet/roslyn/issues/71581