Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clean inline rename session #74818

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

Cosifne
Copy link
Member

@Cosifne Cosifne commented Aug 20, 2024

A few clean PRs before moving the commit operation to async.
This PR has no-effect on existing product behaviors..

Might be easier to review based on commit.

1. Remove the CancellationToken from IInlineRenameSession.CommitAsync.
IInlineRenameSession already contains void Cancel(); to control all the cancellations. All the existing callers are call that method to cancel rename.
In fact, IInlineRenameSession.CommitAsync never accepts real cancellationToken from the caller.

2. Let InlineRenameSessionOptionsStorage.RenameAsynchronously to control CommitAsync. (And it's on by default!!)
This option exists for a long time, but things are never async. Only ExtractMethodCommandHandler is calling CommitAsync (And it's calling JTF.Run)

@Cosifne Cosifne requested a review from a team as a code owner August 20, 2024 04:36
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 20, 2024
@Cosifne
Copy link
Member Author

Cosifne commented Aug 20, 2024

Guess the best reviewer should be @ryzngard

@CyrusNajmabadi
Copy link
Member

looking.

@Cosifne Cosifne merged commit 76b0357 into dotnet:main Aug 20, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 20, 2024
@Cosifne Cosifne deleted the dev/shech/CleanInlineRenameSession branch August 20, 2024 20:22
@dibarbet dibarbet modified the milestones: Next, 17.12 P2 Aug 26, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants