59 references to GetCaretPoint
Microsoft.CodeAnalysis.CSharp.EditorFeatures (15)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (1)
66var caretPosition = textView.GetCaretPoint(subjectBuffer);
BlockCommentEditing\CloseBlockCommentCommandHandler.cs (1)
33var caret = args.TextView.GetCaretPoint(args.SubjectBuffer);
CompleteStatement\CompleteStatementCommandHandler.cs (1)
103if (args.TextView.GetCaretPoint(args.SubjectBuffer) is not { } caret)
ConvertNamespace\ConvertNamespaceCommandHandler.cs (1)
107var caretOpt = args.TextView.GetCaretPoint(subjectBuffer);
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (3)
83var caretPoint = args.TextView.GetCaretPoint(subjectBuffer); 135textView.GetCaretPoint(subjectBuffer) == initialCaretPoint) 164textView.GetCaretPoint(subjectBuffer) != initialCaretPoint)
EventHookup\EventHookupCommandHandler_TypeCharCommand.cs (2)
46var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer); 71var caretPoint = textView.GetCaretPoint(subjectBuffer);
EventHookup\EventHookupSessionManager.cs (2)
61var caretPoint = analyzedSession.TextView.GetCaretPoint(analyzedSession.SubjectBuffer); 177var caretPoint = CurrentSession.TextView.GetCaretPoint(CurrentSession.SubjectBuffer);
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandler.cs (1)
64var caret = args.TextView.GetCaretPoint(args.SubjectBuffer);
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
45var caret = textView.GetCaretPoint(subjectBuffer);
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (1)
47var caret = textView.GetCaretPoint(subjectBuffer);
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
64var caret = textView.GetCaretPoint(subjectBuffer);
Microsoft.CodeAnalysis.EditorFeatures (37)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
61var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer);
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (1)
105var caret = args.TextView.GetCaretPoint(args.SubjectBuffer);
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
62var caretPoint = textView.GetCaretPoint(subjectBuffer);
Copilot\CopilotTaggerProvider.cs (1)
57if (textView.GetCaretPoint(subjectBuffer) is { } caret)
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (6)
83var caretPosition = textView.GetCaretPoint(subjectBuffer) ?? -1; 163: args.TextView.GetCaretPoint(args.SubjectBuffer) ?? -1; 194var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer) ?? -1; 237var caretPosition = args.TextView.GetCaretPoint(subjectBuffer) ?? -1; 273var caretPosition = args.TextView.GetCaretPoint(subjectBuffer) ?? -1; 302var caretPosition = textView.GetCaretPoint(subjectBuffer) ?? -1;
DocumentationComments\AbstractXmlTagCompletionCommandHandler.cs (1)
83var position = args.TextView.GetCaretPoint(args.SubjectBuffer);
Editor\GoToAdjacentMemberCommandHandler.cs (2)
55var caretPoint = args.TextView.GetCaretPoint(subjectBuffer); 73var caretPoint = args.TextView.GetCaretPoint(subjectBuffer);
ExternalAccess\VSTypeScript\Api\VSTypeScriptExtensions.cs (1)
20=> Editor.Shared.Extensions.ITextViewExtensions.GetCaretPoint(textView, subjectBuffer);
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
43var caretPoint = args.TextView.GetCaretPoint(subjectBuffer);
Formatting\FormatCommandHandler.cs (2)
130var caretPosition = textView.GetCaretPoint(args.SubjectBuffer); 181var newCaretPositionMarker = args.TextView.GetCaretPoint(args.SubjectBuffer);
Formatting\FormatCommandHandler.Paste.cs (1)
25var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer);
GoOrFind\AbstractGoOrFindCommandHandler.cs (1)
31var caret = args.TextView.GetCaretPoint(subjectBuffer);
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
83args.TextView.GetCaretPoint(subjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_BackspaceDeleteHandler.cs (2)
26var caretPoint = args.TextView.GetCaretPoint(args.SubjectBuffer); 38var caretPoint = args.TextView.GetCaretPoint(args.SubjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_LineStartEndHandler.cs (1)
48var caretPoint = view.GetCaretPoint(subjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (2)
25var caretPoint = args.TextView.GetCaretPoint(args.SubjectBuffer); 60var caretPoint = args.TextView.GetCaretPoint(args.SubjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_SelectAllHandler.cs (1)
29var caretPoint = view.GetCaretPoint(subjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_WordDeleteHandler.cs (1)
45var caretPoint = view.GetCaretPoint(subjectBuffer);
IntelliSense\AsyncCompletion\CommitManager.cs (1)
297var caretPositionInBuffer = view.GetCaretPoint(subjectBuffer);
NavigationBar\NavigationBarController.cs (1)
236return currentView?.GetCaretPoint(_subjectBuffer)?.Position;
Organizing\OrganizeDocumentCommandHandler.cs (1)
120var caretPoint = textView.GetCaretPoint(subjectBuffer);
PasteTracking\PasteTrackingPasteCommandHandler.cs (1)
41var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer);
Shared\Extensions\ITextViewExtensions.cs (1)
262var finalCaretPositionOpt = textView.GetCaretPoint(subjectBuffer);
SignatureHelp\Controller.cs (1)
151if (!this.TextView.GetCaretPoint(this.SubjectBuffer).HasValue)
SignatureHelp\Controller.Session_ComputeModel.cs (1)
33var caretPosition = Controller.TextView.GetCaretPoint(Controller.SubjectBuffer).Value;
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (2)
50var point = view.GetCaretPoint(_subjectBuffer); 69var position = tuple.Item1.GetCaretPoint(_subjectBuffer);
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
207=> textView?.GetCaretPoint(subjectBuffer);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (3)
63var caret = session.TextView.GetCaretPoint(session.SubjectBuffer).Value; 125var caret = session.TextView.GetCaretPoint(session.SubjectBuffer).Value; 139var caret = session.TextView.GetCaretPoint(buffer).Value;
Microsoft.VisualStudio.LanguageServices (4)
DebuggerIntelliSense\DebuggerIntellisenseFilter.cs (1)
110var caretPosition = _context.DebuggerTextView.GetCaretPoint(_context.Buffer);
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
35var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer) ?? -1;
Snippets\AbstractSnippetCommandHandler.cs (1)
265var endPositionInSubjectBuffer = textView.GetCaretPoint(subjectBuffer);
ValueTracking\ValueTrackingCommandHandler.cs (1)
85var caretPosition = args.TextView.GetCaretPoint(args.SubjectBuffer);