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