-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Unify command handler code for 'go to base/impl' and 'find refs' #78750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify command handler code for 'go to base/impl' and 'find refs' #78750
Conversation
| listenerProvider.GetListener(FeatureAttribute.FindReferences), | ||
| globalOptions) | ||
| { | ||
| private readonly IStreamingFindUsagesPresenter _streamingPresenter; |
There was a problem hiding this comment.
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>(); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; } |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can fix in followup :)
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.