1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
124
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
33 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (33)
ProjectSystem\VisualStudioWorkspaceImpl.cs (20)
138
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
146
_updateUIContextJoinableTasks = new JoinableTaskCollection(
_threadingContext
.JoinableTaskContext);
157
_threadingContext
.ThrowIfNotOnUIThread();
198
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true,
_threadingContext
.DisposalToken);
219
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(
_threadingContext
.DisposalToken);
303
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
323
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
375
_threadingContext
.ThrowIfNotOnUIThread();
647
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges));
941
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.DisposalToken));
1087
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1197
this.
_threadingContext
.ThrowIfNotOnUIThread();
1402
_threadingContext
.ThrowIfNotOnUIThread();
1526
_threadingContext
.ThrowIfNotOnUIThread();
1619
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1641
var joinableTask =
_threadingContext
.JoinableTaskFactory.RunAsync(() => UpdateUIContextAsync(language, cancellationToken));
1653
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (12)
65
workspace.
_threadingContext
.ThrowIfNotOnUIThread();
101
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
114
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
136
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
192
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
263
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
275
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
297
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
315
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
364
if (_workspace.
_threadingContext
.JoinableTaskContext.IsOnMainThread)
398
await _workspace.
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync();
414
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
19
_threadingContext
.ThrowIfNotOnUIThread();