1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
125
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
33 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (33)
ProjectSystem\VisualStudioWorkspaceImpl.cs (20)
139
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
147
_updateUIContextJoinableTasks = new JoinableTaskCollection(
_threadingContext
.JoinableTaskContext);
158
_threadingContext
.ThrowIfNotOnUIThread();
199
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true,
_threadingContext
.DisposalToken);
220
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(
_threadingContext
.DisposalToken);
304
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
324
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
376
_threadingContext
.ThrowIfNotOnUIThread();
648
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges));
942
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.DisposalToken));
1092
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1202
this.
_threadingContext
.ThrowIfNotOnUIThread();
1407
_threadingContext
.ThrowIfNotOnUIThread();
1531
_threadingContext
.ThrowIfNotOnUIThread();
1624
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1646
var joinableTask =
_threadingContext
.JoinableTaskFactory.RunAsync(() => UpdateUIContextAsync(language, cancellationToken));
1658
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();