-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Conversation
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.
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. |
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.
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.
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.
Yes. taht woudl make a ton of sense. let me see what we can do about that.
ProcessTodoCommentInfosAsync, | ||
_asyncListener, | ||
cancellationToken)); | ||
var cancellationToken = _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.
not sure why this was lazily created.
Potential fix for https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/1466973.