Open TanayParikh opened 3 years ago
This issue requires further investigation, I haven't had luck and I believe it may benefit from a fresh pair of eyes if someone has the bandwidth. I can go over what I've tried and how to setup the repro env offline.
Needs another eye on this.
Extension of https://github.com/dotnet/aspnetcore/issues/27825.
So that https://github.com/dotnet/roslyn/pull/49592 can be reverted.
Occurs when a code action is attempted to be resolved. Ex.
you select the lightbulb and hover over
@using System.Diagnostics
you get a spinning circle instead of the preview.Issue is related to Razor calling
textDocument/codeActionResolve
to Roslyn, and then Roslyn calling forCSharpSpanMappingService.MapSpansAsync
which in turn calls forrazor/mapToDocumentRanges
. Thisrazor/mapToDocumentRanges
request is what's hanging.$/cancelRequest
while the code action resolve is showing the spinning circle. You do get a cancel request after you exit the code action resolve menu, but that's expected.