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

Make CodeAction.NestedActions public #71327

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #71050

@CyrusNajmabadi CyrusNajmabadi requested review from 333fred, dibarbet and a team as code owners December 18, 2023 19:44
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 18, 2023
@@ -27,7 +27,7 @@ public abstract partial class MultipleCodeStyleOptionConfigurationTests : Abstra
protected override ImmutableArray<CodeAction> MassageActions(ImmutableArray<CodeAction> actions)
{
Assert.Single(actions);
var nestedActionForOptionIndex = ((AbstractConfigurationActionWithNestedActions)actions[0]).NestedCodeActions[OptionIndex];
var nestedActionForOptionIndex = ((AbstractConfigurationActionWithNestedActions)actions[0]).NestedActions[OptionIndex];
Copy link
Member Author

Choose a reason for hiding this comment

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

renamed property to match parameter used to actually provided nested actions.

/// nested options with less steps. To create a <see cref="CodeAction"/> with nested actions, use <see
/// cref="Create(string, ImmutableArray{CodeAction}, bool)"/>.
/// </summary>
public virtual bool IsInlinable => false;
Copy link
Member Author

Choose a reason for hiding this comment

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

this is part and parcel of NestedActions (and is also part of the Create method).

@CyrusNajmabadi
Copy link
Member Author

@dibarbet ptal

@CyrusNajmabadi CyrusNajmabadi merged commit ebe9c2a into dotnet:main Dec 18, 2023
28 checks passed
@ghost ghost added this to the Next milestone Dec 18, 2023
@CyrusNajmabadi CyrusNajmabadi deleted the publicApi branch December 19, 2023 00:44
@Cosifne Cosifne modified the milestones: Next, 17.9 P3 Jan 9, 2024
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.

Make code action's nested actions publicly accessible
5 participants