1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
117_threadingContext = exportProvider.GetExportedValue<IThreadingContext>();
32 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (32)
ProjectSystem\VisualStudioWorkspaceImpl.cs (19)
131this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps, _threadingContext.DisposalToken); 148_threadingContext.ThrowIfNotOnUIThread(); 189await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _threadingContext.DisposalToken); 201var memoryListener = await VirtualMemoryNotificationListener.CreateAsync(this, _threadingContext, asyncServiceProvider, _globalOptions, _threadingContext.DisposalToken).ConfigureAwait(true); 212await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(_threadingContext.DisposalToken); 296var document = _threadingContext.JoinableTaskFactory.Run(() => CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask()); 316if (!_threadingContext.JoinableTaskContext.IsOnMainThread) 368_threadingContext.ThrowIfNotOnUIThread(); 640var mappedChanges = _threadingContext.JoinableTaskFactory.Run(() => GetMappedTextChangesAsync(solutionChanges)); 934var dte = _threadingContext.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(_threadingContext.JoinableTaskFactory)); 1084if (!_threadingContext.JoinableTaskContext.IsOnMainThread) 1348_threadingContext.ThrowIfNotOnUIThread(); 1472_threadingContext.ThrowIfNotOnUIThread(); 1565_threadingContext.RunWithShutdownBlockAsync(async cancellationToken => 1574await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (12)
61workspace._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(); 360if (_workspace._threadingContext.JoinableTaskContext.IsOnMainThread) 384await _workspace._threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(); 396_workspace._threadingContext.ThrowIfNotOnUIThread();
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
19_threadingContext.ThrowIfNotOnUIThread();