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

Disable quickinfo on new inline rename #63907

Merged
merged 8 commits into from
Sep 26, 2022

Conversation

ryzngard
Copy link
Contributor

@ryzngard ryzngard commented Sep 9, 2022

No description provided.

@ryzngard ryzngard marked this pull request as ready for review September 14, 2022 20:04
@ryzngard ryzngard requested review from a team as code owners September 14, 2022 20:04
return;
}

await infoSession.DismissAsync().ConfigureAwait(false);
Copy link
Member

Choose a reason for hiding this comment

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

If I read the code correctly, we are dismissing the QuickInfo when rename is triggered as well as returning no QuickInfo item when there's an active rename session.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct. That's required because dismissing the active session alone doesn't prevent another one being created. We can't actively turn off QuickInfo altogether, so our workaround is to return no information.

Copy link
Member

Choose a reason for hiding this comment

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

might be worth documenting.

@genlu
Copy link
Member

genlu commented Sep 15, 2022

Is it possible to unittest this?

}

public async Task<IntellisenseQuickInfoItem> GetQuickInfoItemAsync(IAsyncQuickInfoSession session, CancellationToken cancellationToken)
{
if (_globalOptions.GetOption(InlineRenameUIOptions.UseInlineAdornment) && _inlineRenameService.ActiveSession is not null)
return null;
Copy link
Member

Choose a reason for hiding this comment

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

consider doc'ing both sides to mention the other.

Copy link
Member

Choose a reason for hiding this comment

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

also doc why we're doing this. basically that quick info otherwise can go on top of hte rename dialog, blocking it from the user.

@ryzngard ryzngard requested a review from genlu September 22, 2022 20:12
@ryzngard ryzngard enabled auto-merge (squash) September 26, 2022 18:37
@ryzngard ryzngard merged commit 2a9812e into dotnet:main Sep 26, 2022
@ghost ghost added this to the Next milestone Sep 26, 2022
@Cosifne Cosifne modified the milestones: Next, 17.4 P3 Sep 26, 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.

5 participants