Udostępnij za pośrednictwem


CodeAction.IsInlinable Property

Definition

If this code action contains NestedActions, this property provides a hint to hosts as to whether or not it's ok to elide this code action and just present the nested actions instead. When a host already has a lot of top-level actions to show, it should consider not inlining this action, to keep the number of options presented to the user low. However, if there are few options to show to the user, inlining this action could be beneficial as it would allow the user to see and choose one of the nested options with less steps. To create a CodeAction with nested actions, use Create(String, ImmutableArray<CodeAction>, Boolean).

public virtual bool IsInlinable { get; }
member this.IsInlinable : bool
Public Overridable ReadOnly Property IsInlinable As Boolean

Property Value

Applies to