LanguageService.OnChangesCommitted Method
Called when changes generated by an auto-complete or code snippet expansion operation is committed to the buffer.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Protected Overridable Sub OnChangesCommitted ( _
flags As UInteger, _
ptsChanged As TextSpan() _
)
protected virtual void OnChangesCommitted(
uint flags,
TextSpan[] ptsChanged
)
protected:
virtual void OnChangesCommitted(
unsigned int flags,
array<TextSpan>^ ptsChanged
)
abstract OnChangesCommitted :
flags:uint32 *
ptsChanged:TextSpan[] -> unit
override OnChangesCommitted :
flags:uint32 *
ptsChanged:TextSpan[] -> unit
protected function OnChangesCommitted(
flags : uint,
ptsChanged : TextSpan[]
)
Parameters
flags
Type: UInt32[in] A collection of flags from the ChangeCommitGestureFlags enumeration describing the change.
ptsChanged
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in] A single TextSpan describing the range of lines that was changed.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.