Share via


SuggestionServiceBase.TryUpdateProposal(ITextView, ProposalBase) Method

Definition

Try to update a proposal given any changes to the view and underlying buffer.

public virtual Microsoft.VisualStudio.Language.Proposals.ProposalBase? TryUpdateProposal (Microsoft.VisualStudio.Text.Editor.ITextView view, Microsoft.VisualStudio.Language.Proposals.ProposalBase proposal);
abstract member TryUpdateProposal : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Language.Proposals.ProposalBase -> Microsoft.VisualStudio.Language.Proposals.ProposalBase
override this.TryUpdateProposal : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Language.Proposals.ProposalBase -> Microsoft.VisualStudio.Language.Proposals.ProposalBase
Public Overridable Function TryUpdateProposal (view As ITextView, proposal As ProposalBase) As ProposalBase

Parameters

view
ITextView
proposal
ProposalBase

Returns

The updated proposal or null if the changes are incompatible with proposal.

Remarks

Must be called from the UI thread.

Applies to