1 implementation of DisposalToken
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ThreadingContext.cs (1)
63public CancellationToken DisposalToken => _disposalTokenSource.Token;
50 references to DisposalToken
Microsoft.CodeAnalysis.EditorFeatures (12)
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
70_threadingContext.DisposalToken);
Copilot\CopilotWpfTextCreationListener.cs (1)
57_threadingContext.DisposalToken);
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
49threadingContext.DisposalToken);
InlineHints\InlineHintsTag.cs (2)
263var uiList = await CreateDescriptionAsync(threadingContext.DisposalToken).ConfigureAwait(false); 264await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(threadingContext.DisposalToken);
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (1)
249await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(_threadingContext.DisposalToken);
IntelliSense\ImportCompletionCacheService\EditorExtensionMethodImportCompletionCacheServiceFactory.cs (1)
23listenerProvider, ExtensionMethodImportCompletionHelper.BatchUpdateCacheAsync, threadingContext.DisposalToken);
IntelliSense\ImportCompletionCacheService\EditorTypeImportCompletionCacheServiceFactory.cs (1)
23listenerProvider, AbstractTypeImportCompletionService.BatchUpdateCacheAsync, threadingContext.DisposalToken);
NavigateTo\NavigateToItemProvider.cs (1)
120_threadingContext.DisposalToken);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
50_threadingContext.DisposalToken);
Tagging\TaggerMainThreadManager.cs (2)
34threadingContext.DisposalToken); 86var registration = _threadingContext.DisposalToken.Register(
Microsoft.VisualStudio.LanguageServices (37)
ColorSchemes\ColorSchemeApplier.cs (1)
57threadingContext.DisposalToken);
DesignerAttribute\VisualStudioDesignerAttributeService.cs (2)
83_threadingContext.DisposalToken); 89_threadingContext.DisposalToken);
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
54private readonly CancellationSeries _cancellationSeries = new(threadingContext.DisposalToken);
DocumentOutline\DocumentOutlineViewModel.cs (2)
79_threadingContext.DisposalToken); 85_threadingContext.DisposalToken);
ErrorReporting\VisualStudioErrorReportingService.cs (2)
88await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(_threadingContext.DisposalToken); 90var activityLog = await _activityLog.GetValueAsync(_threadingContext.DisposalToken).ConfigureAwait(true);
ErrorReporting\VisualStudioInfoBar.cs (1)
69await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(_threadingContext.DisposalToken);
ExternalAccess\UnitTesting\VisualStudioGlobalOperationNotificationService.cs (1)
20: AbstractGlobalOperationNotificationService(listenerProvider, threadingContext.DisposalToken);
Interop\CleanableWeakComHandleTable.cs (2)
67await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(_threadingContext.DisposalToken); 139await listener.Delay(DelayTimeSpan.NearImmediate, _threadingContext.DisposalToken).ConfigureAwait(true);
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (1)
58threadingContext.DisposalToken);
NavigateTo\RoslynSearchItemsSource.cs (1)
102provider._threadingContext.DisposalToken);
ProjectSystem\FileChangeWatcherProvider.cs (2)
31await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(threadingContext.DisposalToken); 37threadingContext.DisposalToken,
ProjectSystem\VisualStudioProjectFactory.cs (1)
60var cancellationToken = _threadingContext.DisposalToken;
ProjectSystem\VisualStudioWorkspaceImpl.cs (3)
139this, FileChangeWatcher, CheckForAddedFileBeingOpenMaybeAsync, RemoveProjectFromMaps, _threadingContext.DisposalToken); 212await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _threadingContext.DisposalToken); 923var dte = _threadingContext.JoinableTaskFactory.Run(() => _asyncServiceProvider.GetServiceAsync<SDTE, EnvDTE.DTE>(_threadingContext.DisposalToken));
Remote\VisualStudioRemoteHostClientProvider.cs (1)
139var client = await ServiceHubRemoteHostClient.CreateAsync(Services, configuration, localSettingsDirectory, _listenerProvider, serviceBroker, _callbackDispatchers, _threadingContext.DisposalToken).ConfigureAwait(false);
StackTraceExplorer\StackFrameViewModel.cs (1)
47private readonly CancellationSeries _navigationCancellation = new(threadingContext.DisposalToken);
StackTraceExplorer\StackTraceExplorerViewModel.cs (1)
68var cancellationToken = _threadingContext.DisposalToken;
SymbolSearch\AbstractDelayStartedService.cs (1)
47protected CancellationToken DisposalToken => ThreadingContext.DisposalToken;
SymbolSearch\VisualStudioSymbolSearchService.cs (1)
111var cancellationToken = ThreadingContext.DisposalToken;
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
71_disposalToken = threadingContext.DisposalToken;
Telemetry\FileLogger.cs (1)
44threadingContext.DisposalToken);
Telemetry\VisualStudioWorkspaceTelemetryService.cs (1)
44var cancellationToken = _threadingContext.DisposalToken;
ValueTracking\ValueTrackedTreeItemViewModel.cs (2)
149var children = await CalculateChildrenAsync(ThreadingContext.DisposalToken).ConfigureAwait(false); 167}, ThreadingContext.DisposalToken);
Workspace\VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory.cs (3)
76var shellService = await _serviceProvider.GetServiceAsync<SVsSolution, IVsSolution>(_threadingContext.DisposalToken).ConfigureAwait(true); 77await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(_threadingContext.DisposalToken); 79}, _threadingContext.DisposalToken);
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (4)
77await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _threadingContext.DisposalToken); 80var shell = await _serviceProvider.GetServiceAsync<SVsShell, IVsShell7>(_threadingContext.DisposalToken).ConfigureAwait(true); 91await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _threadingContext.DisposalToken); 92var service = await serviceProvider.GetServiceAsync<SVsOperationProgress, IVsOperationProgressStatusService>(throwOnFailure: false, _threadingContext.DisposalToken).ConfigureAwait(true);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Options\CSharpVisualStudioCopilotOptionsService.cs (1)
72_settingsManagerTask = settingsManagerService.GetValueAsync(threadingContext.DisposalToken);