Skip to content

Update 'Rename's commit behavior to be async.#61549

Merged
CyrusNajmabadi merged 11 commits intodotnet:mainfrom
CyrusNajmabadi:renameAsync2
Jun 1, 2022
Merged

Update 'Rename's commit behavior to be async.#61549
CyrusNajmabadi merged 11 commits intodotnet:mainfrom
CyrusNajmabadi:renameAsync2

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review May 27, 2022 15:06
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 27, 2022 15:06
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@dibarbet @ryzngard for review please :)

/// <summary>
/// Dismisses the rename session, completing the rename operation across all files.
/// </summary>
[Obsolete($"Use {nameof(CommitAsync)} instead", error: true)]
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.

who is this used by, TS?

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.

nope. i'll just remove :)

// We pass CancellationToken.None here because we don't have a usable token to pass. The
// IUIThreadOperationContext passed here as a cancellation token, but the caller in CommitCore has
// already turned off cancellation because we're committed to the update at this point. If we ever
// want to pass cancellation here, we'd want to move this part back out of this method and before
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.

comment seems off - says we pass None, but we just pass in the callers token

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.

fixed.

@jasonmalinowski jasonmalinowski self-requested a review May 31, 2022 18:30
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 31, 2022 19:35
@CyrusNajmabadi CyrusNajmabadi enabled auto-merge May 31, 2022 22:52
@CyrusNajmabadi CyrusNajmabadi merged commit 5782782 into dotnet:main Jun 1, 2022
@ghost ghost added this to the Next milestone Jun 1, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the renameAsync2 branch June 4, 2022 02:55
@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 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.

3 participants