Skip to content

Ensure we clear out existing todo comments when a user deletes a file.#44274

Merged
CyrusNajmabadi merged 4 commits intodotnet:masterfrom
CyrusNajmabadi:todoDelete
May 16, 2020
Merged

Ensure we clear out existing todo comments when a user deletes a file.#44274
CyrusNajmabadi merged 4 commits intodotnet:masterfrom
CyrusNajmabadi:todoDelete

Conversation

@CyrusNajmabadi
Copy link
Contributor

Fixes #44062

Working on an integration test now.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 14, 2020 22:12
@CyrusNajmabadi CyrusNajmabadi requested a review from sharwell May 15, 2020 19:25
new object[] { documentId },
nameof(ITodoCommentsListener.ReportTodoCommentDataAsync),
new object[] { documentId, Array.Empty<TodoCommentData>() },
cancellationToken);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@uniqueiniquity Once this goes in, TS will be able to do the same. To represent a document being deleted, just notify us that the set of comments for it went to 'empty'. we'll clean things out in memory and will update the task list.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@CyrusNajmabadi CyrusNajmabadi merged commit dcc0f24 into dotnet:master May 16, 2020
@ghost ghost added this to the Next milestone May 16, 2020
@CyrusNajmabadi CyrusNajmabadi deleted the todoDelete branch May 16, 2020 01:15
@JoeRobich JoeRobich modified the milestones: Next, 16.7.P2 May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Todo comments are not removed from task list when file is deleted

3 participants