17 references to TryMoveCaretToAndEnsureVisible
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (3)
342
args.TextView.
TryMoveCaretToAndEnsureVisible
(new SnapshotPoint(args.SubjectBuffer.CurrentSnapshot, nextCaretPosition));
387
args.TextView.
TryMoveCaretToAndEnsureVisible
(new SnapshotPoint(args.SubjectBuffer.CurrentSnapshot, nextCaretPosition));
655
textView.
TryMoveCaretToAndEnsureVisible
(new SnapshotPoint(textView.TextSnapshot, insertionPosition + 1));
CompleteStatement\CompleteStatementCommandHandler.cs (1)
343
if (!args.TextView.
TryMoveCaretToAndEnsureVisible
(targetPosition))
Microsoft.CodeAnalysis.EditorFeatures (11)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (1)
200
textView.
TryMoveCaretToAndEnsureVisible
(caretPosition.GetContainingLine().End);
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (1)
74
textView.
TryMoveCaretToAndEnsureVisible
(subjectBuffer.CurrentSnapshot.GetPoint(replaceSpan.Start + snippet.CaretOffset));
DocumentationComments\AbstractXmlTagCompletionCommandHandler.cs (1)
102
textView.
TryMoveCaretToAndEnsureVisible
(point);
Editor\GoToAdjacentMemberCommandHandler.cs (1)
95
args.TextView.
TryMoveCaretToAndEnsureVisible
(new SnapshotPoint(subjectBuffer.CurrentSnapshot, targetPosition.Value), _outliningManagerService);
ExternalAccess\VSTypeScript\Api\VSTypeScriptExtensions.cs (1)
23
=> Editor.Shared.Extensions.ITextViewExtensions.
TryMoveCaretToAndEnsureVisible
(textView, point);
ExtractMethod\ExtractMethodCommandHandler.cs (1)
191
view.
TryMoveCaretToAndEnsureVisible
(new SnapshotPoint(textSnapshot, methodNameAtInvocation.Value.Span.End));
Formatting\FormatCommandHandler.cs (1)
193
args.TextView.
TryMoveCaretToAndEnsureVisible
(oldCaretPosition);
Formatting\FormatCommandHandler.FormatSelection.cs (1)
62
args.TextView.
TryMoveCaretToAndEnsureVisible
(currentSelection.End, ensureSpanVisibleOptions: EnsureSpanVisibleOptions.MinimumScroll);
IntelliSense\AsyncCompletion\CommitManager.cs (1)
300
view.
TryMoveCaretToAndEnsureVisible
(new SnapshotPoint(subjectBuffer.CurrentSnapshot, mappedSpan.Start.Position + textChange.NewText?.Length ?? 0));
ReferenceHighlighting\NavigateToHighlightReferenceCommandHandler.cs (1)
74
if (args.TextView.
TryMoveCaretToAndEnsureVisible
(destTag.Start, _outliningManagerService))
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (1)
76
view.
TryMoveCaretToAndEnsureVisible
(position.Value);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
44
session.TextView.
TryMoveCaretToAndEnsureVisible
(session.OpeningPoint.GetPoint(session.SubjectBuffer.CurrentSnapshot).Add(1));
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
301
textView.
TryMoveCaretToAndEnsureVisible
(