80 references to ThreadingContext
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ForegroundThreadAffinitizedObject.cs (1)
87await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (12)
AbstractFixAllSuggestedAction.cs (1)
60await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
PreviewChangesSuggestedAction.cs (1)
50suggestedAction.ThreadingContext,
SignatureHelpControllerProvider.cs (2)
78ThreadingContext, 83new DocumentProvider(ThreadingContext),
SuggestedAction.cs (2)
131await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 143await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
SuggestedActionsSource.cs (6)
152ThreadingContext.JoinableTaskFactory.Run(() => statusService.WaitUntilFullyLoadedAsync(cancellationToken)); 228ThreadingContext, owner, codeFixAction.Workspace, originalSolution, subjectBuffer, 232ThreadingContext, owner, codeRefactoringAction.Workspace, originalSolution, subjectBuffer, 236ThreadingContext, owner, fixAllAction.Workspace, originalSolution, subjectBuffer, 239ThreadingContext, owner, fixAllCodeRefactoringAction.Workspace, originalSolution, subjectBuffer, 242ThreadingContext, owner, nestedAction.Workspace, originalSolution, subjectBuffer,
Microsoft.CodeAnalysis.EditorFeatures.Wpf (15)
IWpfDifferenceViewerExtensions.cs (2)
39await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 88await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
QuickInfo\ProjectionBufferContent.cs (1)
84view.SizeToFit(ThreadingContext);
SignatureHelp\SignatureHelpControllerProvider.cs (2)
78ThreadingContext, 83new DocumentProvider(ThreadingContext),
Suggestions\PreviewChanges\PreviewChangesSuggestedAction.cs (1)
50suggestedAction.ThreadingContext,
Suggestions\SuggestedActions\AbstractFixAllSuggestedAction.cs (1)
60await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Suggestions\SuggestedActions\SuggestedAction.cs (2)
131await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 143await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Suggestions\SuggestedActionsSource.cs (6)
152ThreadingContext.JoinableTaskFactory.Run(() => statusService.WaitUntilFullyLoadedAsync(cancellationToken)); 228ThreadingContext, owner, codeFixAction.Workspace, originalSolution, subjectBuffer, 232ThreadingContext, owner, codeRefactoringAction.Workspace, originalSolution, subjectBuffer, 236ThreadingContext, owner, fixAllAction.Workspace, originalSolution, subjectBuffer, 239ThreadingContext, owner, fixAllCodeRefactoringAction.Workspace, originalSolution, subjectBuffer, 242ThreadingContext, owner, nestedAction.Workspace, originalSolution, subjectBuffer,
Microsoft.VisualStudio.LanguageServices (50)
DesignerAttribute\VisualStudioDesignerAttributeService.cs (4)
79ThreadingContext.DisposalToken); 85ThreadingContext.DisposalToken); 187await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken); 286await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken);
FindReferences\Entries\DocumentSpanEntry.cs (1)
232var excerpt = Presenter.ThreadingContext.JoinableTaskFactory.Run(() => excerptService.TryExcerptAsync(document, sourceSpan, ExcerptMode.Tooltip, classificationOptions, CancellationToken.None));
FindReferences\StreamingFindUsagesPresenter.cs (5)
230this, window, _customColumns, _globalOptions, includeContainingTypeAndMemberColumns, includeKindColumn, this.ThreadingContext); 241this, window, _customColumns, _globalOptions, includeContainingTypeAndMemberColumns, includeKindColumn, this.ThreadingContext); 298this.ThreadingContext.ThrowIfNotOnUIThread(); 311this.ThreadingContext.ThrowIfNotOnUIThread(); 331await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Interop\CleanableWeakComHandleTable.cs (4)
65Debug.Assert(ThreadingContext.JoinableTaskContext.IsOnMainThread, "This method is optimized for cases where calls do not yield before checking _needsCleanUp."); 67await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(ThreadingContext.DisposalToken); 139await listener.Delay(TimeSpan.FromMilliseconds(50), ThreadingContext.DisposalToken).ConfigureAwait(true);
KeybindingReset\KeybindingResetDetector.cs (4)
315await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 336await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 376ThreadingContext.JoinableTaskFactory.Run(ShutdownAsync); 425await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync();
Packaging\PackageInstallerServiceFactory.cs (5)
166await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(DisposalToken); 274await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 352await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 366await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 413await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (2)
29await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 49await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Preview\AbstractChange.cs (1)
21: base(engine.ThreadingContext)
Preview\PreviewEngine.cs (1)
229_updater ??= new PreviewUpdater(ThreadingContext, EnsureTextViewIsInitialized(textView));
Preview\PreviewService.cs (1)
51ThreadingContext,
Progression\GraphNavigatorExtension.cs (3)
71this.ThreadingContext.JoinableTaskFactory.Run(() => 85symbol, project.Solution, this.ThreadingContext, _streamingPresenter.Value, cancellationToken).ConfigureAwait(false); 102this.ThreadingContext,
Snippets\AbstractSnippetExpansionClient.cs (7)
144pFunc = new SnippetFunctionSimpleTypeName(this, SubjectBuffer, bstrFieldName, param, ThreadingContext); 147pFunc = new SnippetFunctionClassName(this, SubjectBuffer, bstrFieldName, ThreadingContext); 150pFunc = new SnippetFunctionGenerateSwitchCases(this, SubjectBuffer, bstrFieldName, param, ThreadingContext); 550var symbols = ThreadingContext.JoinableTaskFactory.Run(() => GetReferencedSymbolsToLeftOfCaretAsync(document, caretPosition: triggerSpan.End, cancellationToken)); 591client.ThreadingContext.ThrowIfNotOnUIThread(); 744var compilation = ThreadingContext.JoinableTaskFactory.Run(() => document.Project.GetRequiredCompilationAsync(CancellationToken.None)); 908ThreadingContext.JoinableTaskFactory.Run(() => provider.ProvideArgumentAsync(context));
SymbolSearch\AbstractDelayStartedService.cs (1)
46protected CancellationToken DisposalToken => ThreadingContext.DisposalToken;
SymbolSearch\VisualStudioSymbolSearchService.cs (2)
77await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 96var cancellationToken = ThreadingContext.DisposalToken;
Workspace\SourceGeneratedFileManager.cs (1)
354await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Workspace\VisualStudioActiveDocumentTracker.cs (2)
55ThreadingContext.RunWithShutdownBlockAsync(async cancellationToken => 57await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Workspace\VisualStudioSymbolNavigationService.cs (6)
125await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 146await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 176this.ThreadingContext, 190await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 233await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 280await this.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\SnippetCommandHandler.cs (1)
123ThreadingContext,
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCommandHandler.vb (1)
66Return SnippetExpansionClient.GetSnippetExpansionClient(ThreadingContext,