Skip to content

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

Merged
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
CyrusNajmabadi:todoListWait
Apr 10, 2022
Merged

Delay starting the work to scan for todo-items#60654
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
CyrusNajmabadi:todoListWait

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

@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
@ghost ghost added the Area-IDE label Apr 8, 2022
Copy link
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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