1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
49
_threadingContext
= threadingContext;
3 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (3)
SyncNamespaces\SyncNamespacesCommandHandler.cs (3)
59
var menuCommandService = await serviceProvider.GetServiceAsync<IMenuCommandService, IMenuCommandService>(
_threadingContext
.JoinableTaskFactory, throwOnFailure: false).ConfigureAwait(false);
62
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
141
solution =
_threadingContext
.JoinableTaskFactory.Run(() => syncService.SyncNamespacesAsync(projects, options, operationContext.UserCancellationToken));