Share via


ProposalBase Class

Definition

Class that defines a set of proposed edits to the buffer that will be made if the suggestion is accepted.

public abstract class ProposalBase
type ProposalBase = class
Public MustInherit Class ProposalBase
Inheritance
ProposalBase
Derived

Constructors

ProposalBase()

Properties

AcceptText

Localized text shown next to the accept button in the hint bar. If null or empty, a localized string similar to "to accept" will be used.

Caret

The position of the caret at the time the proposal was generated.

CommitAction

Gets the action to be performed when the user accepts the proposal.

CompletionState

The completion state at the time the proposal was generated.

Description

A description of the proposal.

Edits

A list of edits that will be applied if the proposal is accepted.

Flags

Flags describing how to process the proposal.

NextText

Localized text shown next to the next suggestion button in the hint bar. If null or empty, a localized string similar to "next suggestion" will be used.

PreviewText

Localized text shown next to the accept button in the hint bar when displaying markers only using MarkersOnlyThenGrayText. If null or empty, a localized string similar to "to preview" will be used.

ProposalId

Gets a unique identifier associated with the proposal that can be used when generating telemetry about the proposal.

Scope

The scope of the code affected by the proposal.

UndoDescription

Localized text used to describe the edit made by the proposal in the undo list. If null or empty, a localized string similar to "completion" will be used.

Applies to