17 references to ScheduleTask
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveSession.cs (2)
124_ = _taskQueue.ScheduleTask(nameof(ProcessInitialized), () => 153_taskQueue.ScheduleTask(
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\Diagnostics\DiagnosticAnalyzerService_UpdateSource.cs (2)
49_eventQueue.ScheduleTask(nameof(RaiseDiagnosticsUpdated), () => ev.RaiseEvent(static (handler, arg) => handler(arg.self, arg.args), (self: this, args)), CancellationToken.None); 64_eventQueue.ScheduleTask(nameof(RaiseDiagnosticsUpdated), () => eventAction(raiseEvents), CancellationToken.None);
Features\Diagnostics\DiagnosticService.cs (2)
75_eventQueue.ScheduleTask(DiagnosticsUpdatedEventName, () => 91_eventQueue.ScheduleTask(DiagnosticsUpdatedEventName, () =>
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_BuildSynchronization.cs (1)
86_ = postBuildAndErrorListRefreshTaskQueue.ScheduleTask(nameof(SynchronizeWithBuildAsync), () =>
Microsoft.CodeAnalysis.Workspaces (6)
Notification\AbstractGlobalOperationNotificationService.cs (2)
49_eventQueue.ScheduleTask(nameof(RaiseGlobalOperationStarted), () => this.Started?.Invoke(this, EventArgs.Empty), CancellationToken.None); 56_eventQueue.ScheduleTask(nameof(RaiseGlobalOperationStopped), () => this.Stopped?.Invoke(this, EventArgs.Empty), CancellationToken.None);
Utilities\TaskQueue.cs (3)
55/// <inheritdoc cref="ScheduleTask(string, Action, CancellationToken)"/> 59/// <inheritdoc cref="ScheduleTask(string, Action, CancellationToken)"/> 63/// <inheritdoc cref="ScheduleTask(string, Action, CancellationToken)"/>
Workspace\Workspace.cs (1)
420=> _taskQueue.ScheduleTask(taskName ?? "Workspace.Task", action, CancellationToken.None);
Microsoft.VisualStudio.LanguageServices (4)
TaskList\ExternalErrorDiagnosticUpdateSource.cs (3)
256_taskQueue.ScheduleTask("OnProjectChanged", () => ClearBuildOnlyProjectErrors(e.OldSolution, e.ProjectId), _disposalToken); 265_taskQueue.ScheduleTask("OnDocumentRemoved", () => ClearBuildOnlyDocumentErrors(e.OldSolution, e.ProjectId, e.DocumentId), _disposalToken); 277_taskQueue.ScheduleTask("OnDocumentChanged", () => ClearBuildOnlyDocumentErrors(e.OldSolution, e.ProjectId, e.DocumentId), _disposalToken);
Telemetry\FileLogger.cs (1)
82_taskQueue.ScheduleTask(nameof(FileLogger), () =>