Skip to content
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

Use primitives for batching requests in NavBars #54433

Merged
merged 27 commits into from
Jun 29, 2021

Conversation

CyrusNajmabadi
Copy link
Member

Followup to #54432. That should go in first.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review June 28, 2021 20:39
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 28, 2021 20:39
/// to show all items.
/// The last fully computed model.
/// </summary>
private NavigationBarModel _model_OnlyAccessOnUIThread;
Copy link
Member Author

Choose a reason for hiding this comment

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

This gets cleaner once #54443 goes in. Then we don't need to have state for this and can just pass this value through our work queue.

void Disconnect();

void SetWorkspace(Workspace? newWorkspace);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

removed as there's no need to listen for the workspace (the event sources take care of that). And instead of .Disconnect, this can just be IDisposable.

@@ -97,41 +132,17 @@ internal partial class NavigationBarController : ForegroundThreadAffinitizedObje
TaggerEventSources.OnWorkspaceRegistrationChanged(subjectBuffer));
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the line that notifies us when our buffer is attached to a workspace. so no need for other components to tell us.

@CyrusNajmabadi CyrusNajmabadi requested review from a team as code owners June 29, 2021 00:41
Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Compiler change LGTM

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@CyrusNajmabadi CyrusNajmabadi merged commit 45270df into dotnet:main Jun 29, 2021
@ghost ghost added this to the Next milestone Jun 29, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the taggerEvents2 branch June 29, 2021 15:43
@RikkiGibson RikkiGibson modified the milestones: Next, 17.0.P2 Jun 29, 2021
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.

4 participants