1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
130
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
25 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (25)
ProjectSystem\VisualStudioWorkspaceImpl.cs (15)
145
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
159
_updateUIContextJoinableTasks = new JoinableTaskCollection(
_threadingContext
.JoinableTaskContext);
246
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
266
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
318
_threadingContext
.ThrowIfNotOnUIThread();
590
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges, CancellationToken.None));
907
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.DisposalToken));
1053
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1163
this.
_threadingContext
.ThrowIfNotOnUIThread();
1368
_threadingContext
.ThrowIfNotOnUIThread();
1492
_threadingContext
.ThrowIfNotOnUIThread();
1588
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1610
var joinableTask =
_threadingContext
.JoinableTaskFactory.RunAsync(() => UpdateUIContextAsync(language, cancellationToken));
1622
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();