1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
124
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
29 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (29)
ProjectSystem\VisualStudioWorkspaceImpl.cs (18)
139
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
154
_updateUIContextJoinableTasks = new JoinableTaskCollection(
_threadingContext
.JoinableTaskContext);
171
_threadingContext
.ThrowIfNotOnUIThread();
212
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true,
_threadingContext
.DisposalToken);
285
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
305
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
357
_threadingContext
.ThrowIfNotOnUIThread();
629
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges));
923
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.DisposalToken));
1069
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1179
this.
_threadingContext
.ThrowIfNotOnUIThread();
1384
_threadingContext
.ThrowIfNotOnUIThread();
1508
_threadingContext
.ThrowIfNotOnUIThread();
1601
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1623
var joinableTask =
_threadingContext
.JoinableTaskFactory.RunAsync(() => UpdateUIContextAsync(language, cancellationToken));
1635
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (10)
96
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
109
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
131
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
187
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
258
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
270
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
292
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
310
_workspace.
_threadingContext
.ThrowIfNotOnUIThread();
359
if (_workspace.
_threadingContext
.JoinableTaskContext.IsOnMainThread)
393
await _workspace.
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync();
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
19
_threadingContext
.ThrowIfNotOnUIThread();