12 references to CaretPosition
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (12)
EndConstructGeneration\EndConstructStatementVisitor.vb (1)
169
Return New ReplaceSpanResult(New SnapshotSpan(_subjectBuffer.CurrentSnapshot, _state.
CaretPosition
, 0),
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (11)
204
If element.StartTag IsNot Nothing AndAlso element.StartTag.Span.End = state.
CaretPosition
AndAlso
205
element.EndTag IsNot Nothing AndAlso element.EndTag.SpanStart = state.
CaretPosition
Then
234
Dim caretLine = subjectBuffer.CurrentSnapshot.GetLineNumberFromPosition(state.
CaretPosition
)
295
result.Apply(textView, subjectBuffer, state.
CaretPosition
, _smartIndentationService, _undoHistoryRegistry, _editorOperationsFactoryService)
307
edit.Insert(state.
CaretPosition
, state.NewLineCharacter + aligningWhitespace)
312
textView.TryMoveCaretToAndEnsureVisible(New SnapshotPoint(subjectBuffer.CurrentSnapshot, state.
CaretPosition
))
370
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endText)
398
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endText)
426
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endTagText)
450
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End + 1, endText)
479
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endText)