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

Delay starting the work to scan for todo-items #60654

Merged
merged 5 commits into from
Apr 10, 2022

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Apr 8, 2022

@CyrusNajmabadi CyrusNajmabadi requested a review from tmat April 8, 2022 19:47
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner April 8, 2022 19:47
Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

makes sense to me.

{
// Have to catch all exceptions coming through here as this is called from a
// fire-and-forget method and we want to make sure nothing leaks out.
try
{
// Don't bother doing anything until the workspae has actually loaded. We don't want to add to any
// startup costs by doing work too early.
Copy link
Member

Choose a reason for hiding this comment

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

should we consider not doing anything at all until someone opens the todo comment window? I don't think I've ever opened it, so for people like me it seems like there is no point in this even running.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. taht woudl make a ton of sense. let me see what we can do about that.

ProcessTodoCommentInfosAsync,
_asyncListener,
cancellationToken));
var cancellationToken = _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.

not sure why this was lazily created.

@CyrusNajmabadi CyrusNajmabadi merged commit 3e091ab into dotnet:main Apr 10, 2022
@ghost ghost added this to the Next milestone Apr 10, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the todoListWait branch April 10, 2022 04:29
@dibarbet dibarbet modified the milestones: Next, 17.3.P1 Apr 25, 2022
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.

2 participants