Share via


SuggestionSessionBase.CommitSuggestion(Boolean) Method

Definition

Commit the suggestion (as if the user had accepted the suggestion).

public virtual bool CommitSuggestion (bool commitIntelliSense);
abstract member CommitSuggestion : bool -> bool
override this.CommitSuggestion : bool -> bool
Public Overridable Function CommitSuggestion (commitIntelliSense As Boolean) As Boolean

Parameters

commitIntelliSense
Boolean

If IntelliSense is active, commit the IntelliSense selection prior to committing the suggestion.

Returns

True if subsequent command handling should be blocked.

Remarks

Currently defined as virtual to avoid a build break with IntelliCode. Will be changed to abstract soon.

Will return false if no proposal is displayed.

Must be called from the UI thread.

Applies to