8 references to TryMoveCaretToAndEnsureVisible
Microsoft.CodeAnalysis.EditorFeatures (8)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (1)
200textView.TryMoveCaretToAndEnsureVisible(caretPosition.GetContainingLine().End);
ExternalAccess\VSTypeScript\Api\VSTypeScriptExtensions.cs (1)
23=> Editor.Shared.Extensions.ITextViewExtensions.TryMoveCaretToAndEnsureVisible(textView, point);
ExtractMethod\ExtractMethodCommandHandler.cs (1)
191view.TryMoveCaretToAndEnsureVisible(new SnapshotPoint(textSnapshot, methodNameAtInvocation.Value.Span.End));
Formatting\FormatCommandHandler.cs (1)
195args.TextView.TryMoveCaretToAndEnsureVisible(oldCaretPosition);
Formatting\FormatCommandHandler.FormatSelection.cs (1)
62args.TextView.TryMoveCaretToAndEnsureVisible(currentSelection.End, ensureSpanVisibleOptions: EnsureSpanVisibleOptions.MinimumScroll);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_TabHandler.cs (1)
41args.TextView.TryMoveCaretToAndEnsureVisible(newSelection.Start);
IntelliSense\AsyncCompletion\CommitManager.cs (2)
285view.TryMoveCaretToAndEnsureVisible(new SnapshotPoint(updatedCurrentSnapshot, change.NewPosition.Value)); 300view.TryMoveCaretToAndEnsureVisible(new SnapshotPoint(subjectBuffer.CurrentSnapshot, mappedSpan.Start.Position + textChange.NewText?.Length ?? 0));