Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

This is part of the work to get us off progression. I want to build a unified service for handling these 3 commands. So they can be hooked up into solution explorer symbols trivially, with unified behavior.

@CyrusNajmabadi
Copy link
Member Author

@jasonmalinowski @JoeRobich @dibarbet ptal.

listenerProvider.GetListener(FeatureAttribute.FindReferences),
globalOptions)
{
private readonly IStreamingFindUsagesPresenter _streamingPresenter;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant with teh code in AbstractGoOrFindCommandHandler.

public string? InformationalMessage;
public string? SearchTitle;
public ImmutableArray<DefinitionItem>.Builder Definitions = ImmutableArray.CreateBuilder<DefinitionItem>();
public ImmutableArray<SourceReferenceItem>.Builder References = ImmutableArray.CreateBuilder<SourceReferenceItem>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed as technically FAR is handed the buffered progress guy and may start adding references to it before we swap it out to use the real FAR window.

/// this source.
/// </remarks>
private CancellationTokenSource _cancellationTokenSource = new();
private readonly CancellationSeries _cancellationSeries = new(threadingContext.DisposalToken);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simpler as a CancellationServies (and this code was written before we had that type).

private Func<CancellationToken, Task>? _delayHook;

public abstract string DisplayName { get; }
protected abstract string ScopeDescription { get; }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never used.

}

return Task.Delay(TaggerDelay.OnIdle.ComputeTimeDelay(), cancellationToken);
// If we want to navigate to a single result if it is found quickly, then delay showing the find-refs winfor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// If we want to navigate to a single result if it is found quickly, then delay showing the find-refs winfor
// If we want to navigate to a single result if it is found quickly, then delay showing the find-refs window

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can fix in followup :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants