1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
117
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
32 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (32)
ProjectSystem\VisualStudioWorkspaceImpl.cs (19)
131
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
148
_threadingContext
.ThrowIfNotOnUIThread();
189
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true,
_threadingContext
.DisposalToken);
201
var memoryListener = await VirtualMemoryNotificationListener.CreateAsync(this,
_threadingContext
, asyncServiceProvider, _globalOptions,
_threadingContext
.DisposalToken).ConfigureAwait(true);
212
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(
_threadingContext
.DisposalToken);
296
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
316
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
368
_threadingContext
.ThrowIfNotOnUIThread();
640
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges));
934
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.JoinableTaskFactory));
1084
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1348
_threadingContext
.ThrowIfNotOnUIThread();
1472
_threadingContext
.ThrowIfNotOnUIThread();
1565
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1574
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (12)
61
workspace.
_threadingContext
.ThrowIfNotOnUIThread();
97
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
110
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
132
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
188
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
259
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
271
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
293
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
311
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
360
if (_workspace.
_threadingContext
.JoinableTaskContext.IsOnMainThread)
384
await _workspace.
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync();
396
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
19
_threadingContext
.ThrowIfNotOnUIThread();