21 references to GetSnapshotSpansOnBuffer
Microsoft.CodeAnalysis.CSharp.EditorFeatures (5)
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
36
var spans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (1)
38
var spans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
57
var spans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
82
var selectionsBeforePaste = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
StringCopyPaste\StringCopyPasteCommandHandler_CutCopy.cs (1)
63
var spans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
Microsoft.CodeAnalysis.EditorFeatures (15)
CommentSelection\AbstractCommentSelectionBase.cs (1)
94
var selectedSpans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (2)
96
var snapshots = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer).OrderByDescending(s => s.Span.Start);
158
.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer)
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
43
var spans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(textBuffer);
ExtractMethod\ExtractMethodCommandHandler.cs (2)
65
var spans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer);
95
var spans = view.Selection.
GetSnapshotSpansOnBuffer
(textBuffer).Where(s => s.Length > 0).ToList();
Formatting\FormatCommandHandler.FormatSelection.cs (1)
47
var selection = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(buffer);
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
82
args.TextView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer).FirstOrNull()?.Start ??
InlineRename\AbstractInlineRenameUndoManager.cs (1)
89
var selectionSpan = selection.
GetSnapshotSpansOnBuffer
(snapshot.TextBuffer).Single();
InlineRename\CommandHandlers\AbstractRenameCommandHandler.cs (1)
57
var selectedSpans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
109
var selectedSpans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_WordDeleteHandler.cs (1)
54
var selectedSpans = view.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
InlineRename\InlineRenameSession.cs (1)
237
var selections = _triggerView.Selection.
GetSnapshotSpansOnBuffer
(triggerSpan.Snapshot.TextBuffer);
Interactive\SendToInteractiveSubmissionProvider.cs (1)
39
: args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer).Where(ss => ss.Length > 0);
SplitComment\SplitCommentCommandHandler.cs (1)
52
var spans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (1)
741
null, service, textView.TextBuffer, textView.Selection.
GetSnapshotSpansOnBuffer
(textView.TextBuffer), operation, CancellationToken.None);