1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
118
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
32 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (32)
ProjectSystem\VisualStudioWorkspaceImpl.cs (19)
132
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
140
_updateUIContextJoinableTasks = new JoinableTaskCollection(
_threadingContext
.JoinableTaskContext);
151
_threadingContext
.ThrowIfNotOnUIThread();
192
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true,
_threadingContext
.DisposalToken);
213
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(
_threadingContext
.DisposalToken);
297
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
317
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
369
_threadingContext
.ThrowIfNotOnUIThread();
641
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges));
935
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.DisposalToken));
1085
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1348
_threadingContext
.ThrowIfNotOnUIThread();
1472
_threadingContext
.ThrowIfNotOnUIThread();
1565
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1587
var joinableTask =
_threadingContext
.JoinableTaskFactory.RunAsync(() => UpdateUIContextAsync(language, cancellationToken));
1599
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();