Skip to content
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

Double check document changes when dismiss rename #74905

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Cosifne
Copy link
Member

@Cosifne Cosifne commented Aug 26, 2024

Rename session listens to workspace change event, when there is document changed, it cancels the active rename session.

This is causing problem, sometimes WorkspaceChangeKind.SolutionChanged might be triggered, and there is no real document changes so user might see rename get dismissed randomly.
In background, it might just be source-generated version maps get udpated.
See the value when I hit the rename dismissed problem.
image

So double-check if there is actual document changes.

It might be the fix to: #74347

@Cosifne Cosifne requested a review from a team as a code owner August 26, 2024 22:22
@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 26, 2024
@Cosifne Cosifne enabled auto-merge August 26, 2024 23:15
@Cosifne Cosifne merged commit d4adac6 into dotnet:main Aug 27, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 27, 2024
@Cosifne Cosifne deleted the dev/shech/RenameDismissedProblem branch August 27, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

2 participants