Open sapsari opened 1 year ago
Also if you set TEST_REDUCE_ASYNC = false in the source code, meaning you don't call Simplifier.ReduceAsync anymore, and everything works fine.
And copy-pasted GetSimplifiedTypeNameAsync method from https://github.com/dotnet/roslyn/blob/2a594fa2157a734a988f7b5dbac99484781599bd/src/Features/Core/Portable/Snippets/SnippetFunctionService.cs#L38
Trying to call Simplifier.ReduceAsync method inside CompletionProvider.GetChangeAsync method , in a Visual Studio extension. Simplifier.ReduceAsync hangs and does not respond.
Version Used: Roslyn binaries are version 4.3.1
Requirements: Visual Studio 2022 and Visual Studio extension development workload
Steps to Reproduce:
Expected Behavior: Simplifier.ReduceAsync to return "File" (with param newText="System.IO.File")
Actual Behavior: Simpifier.ReduceAsync fails to return anything. But can be cancelled though.
https://github.com/dotnet/roslyn/assets/700243/559657f8-2a33-4ada-9060-67ad3727284a