LanguageService.OnChangesCommitted Method (UInt32, TextSpan[])

 

Called when changes generated by an auto-complete or code snippet expansion operation is committed to the buffer.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

protected virtual void OnChangesCommitted(
	uint flags,
	TextSpan[] ptsChanged
)

Parameters

flags
Type: System.UInt32

[in] A collection of flags from the ChangeCommitGestureFlags enumeration describing the change.

ptsChanged
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[]

[in] A single TextSpan describing the range of lines that was changed.

This method allows you an opportunity to do something just after a change has been committed to the buffer. Note that parsing is already taken care of through other paths.

The base method does nothing.

Return to top
Show: