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