Skip to content

Commit dcbaee0

Browse files
Set to the Visual studio JoinableTaskFactory
1 parent 50acfc2 commit dcbaee0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CodeConverter/Shared/JoinableTaskFactorySingleton.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ namespace ICSharpCode.CodeConverter.Shared
66
/// <summary>
77
/// If you have a JoinableTaskFactory, set it here to help avoid deadlocks
88
/// </summary>
9-
internal static class JoinableTaskFactorySingleton
9+
public static class JoinableTaskFactorySingleton
1010
{
11-
public static JoinableTaskFactory Instance { get; private set; }
11+
public static JoinableTaskFactory Instance { get; set; }
1212

1313
internal static JoinableTaskFactory EnsureInitialized()
1414
{

Vsix/CodeConversion.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public CodeConversion(IAsyncServiceProvider serviceProvider,
4141
JoinableTaskFactory joinableTaskFactory, Cancellation packageCancellation, VisualStudioWorkspace visualStudioWorkspace,
4242
Func<Task<ConverterOptionsPage>> getOptions, OutputWindow outputWindow)
4343
{
44+
JoinableTaskFactorySingleton.Instance = joinableTaskFactory;
4445
GetOptions = getOptions;
4546
_serviceProvider = serviceProvider;
4647
_joinableTaskFactory = joinableTaskFactory;

0 commit comments

Comments
 (0)