SuggestionServiceBase.TryUpdateProposal(ITextView, ProposalBase) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.