1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
126
_threadingContext
= exportProvider.GetExportedValue<IThreadingContext>();
25 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (25)
ProjectSystem\VisualStudioWorkspaceImpl.cs (15)
141
this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps,
_threadingContext
.DisposalToken);
155
_updateUIContextJoinableTasks = new JoinableTaskCollection(
_threadingContext
.JoinableTaskContext);
242
var document =
_threadingContext
.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask());
262
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
314
_threadingContext
.ThrowIfNotOnUIThread();
586
var mappedChanges =
_threadingContext
.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges, CancellationToken.None));
903
var dte =
_threadingContext
.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(
_threadingContext
.DisposalToken));
1049
if (!
_threadingContext
.JoinableTaskContext.IsOnMainThread)
1159
this.
_threadingContext
.ThrowIfNotOnUIThread();
1364
_threadingContext
.ThrowIfNotOnUIThread();
1488
_threadingContext
.ThrowIfNotOnUIThread();
1581
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
1603
var joinableTask =
_threadingContext
.JoinableTaskFactory.RunAsync(() => UpdateUIContextAsync(language, cancellationToken));
1615
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();