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
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Protected Overridable Sub OnChangesCommitted ( _
    flags As UInteger, _
    ptsChanged As TextSpan() _
)
'使用
Dim flags As UInteger
Dim ptsChanged As TextSpan()

Me.OnChangesCommitted(flags, ptsChanged)
protected virtual void OnChangesCommitted(
    uint flags,
    TextSpan[] ptsChanged
)
protected:
virtual void OnChangesCommitted(
    unsigned int flags, 
    array<TextSpan>^ ptsChanged
)
protected function OnChangesCommitted(
    flags : uint, 
    ptsChanged : TextSpan[]
)

Parameters

  • ptsChanged
    Type: []

    [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.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace