Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private async Task StartAsync(VisualStudioWorkspace workspace)
_ = new VisualStudioTaskListTable(workspace, _threadingContext, _tableManagerProvider, this);

// Now that we've hooked everything up, kick off the work to actually start computing and reporting items.
RegisterIncrementalAnalayzerAndStartComputingTaskListItems();
RegisterIncrementalAnalyzerAndStartComputingTaskListItems();
}
catch (OperationCanceledException)
{
Expand Down Expand Up @@ -149,13 +149,17 @@ public ImmutableArray<TaskListItem> GetTaskListItems(Workspace workspace, Docume
? values
: ImmutableArray<TaskListItem>.Empty;

private void RegisterIncrementalAnalayzerAndStartComputingTaskListItems()
private void RegisterIncrementalAnalyzerAndStartComputingTaskListItems()
{
// If we're in pull-diagnostics mode, then todo-comments will be handled by LSP.
var diagnosticMode = _globalOptions.GetDiagnosticMode();
if (diagnosticMode == DiagnosticMode.LspPull)
return;

// Do not register if solution crawler is explicitly off.
if (!_globalOptions.GetOption(SolutionCrawlerRegistrationService.EnableSolutionCrawler))
return;

var services = _workspace.Services.SolutionServices;
var registrationService = services.GetRequiredService<ISolutionCrawlerRegistrationService>();
var analyzerProvider = new TaskListIncrementalAnalyzerProvider(_globalOptions, this);
Expand Down