25 references to ToTextSpan
Microsoft.CodeAnalysis.EditorFeatures (25)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
154var textSpan = snapshotSpan.Span.ToTextSpan();
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (1)
197await addAsync(span.Span.ToTextSpan(), tempBuffer).ConfigureAwait(false);
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (2)
242document, span.ToTextSpan(), options, classifiedSpans, cancellationToken).ConfigureAwait(false); 247document, span.ToTextSpan(), options, classifiedSpans, cancellationToken).ConfigureAwait(false);
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (3)
465span.Snapshot.AsText(), span.Span.ToTextSpan(), classifiedSpans, CancellationToken.None); 499classificationService.AddSyntacticClassifications(solutionServices, root, span.Span.ToTextSpan(), tempList, cancellationToken); 501classificationService.AddSyntacticClassificationsAsync(lastProcessedDocument, span.Span.ToTextSpan(), tempList, cancellationToken).Wait(cancellationToken);
Classification\TotalClassificationTaggerProvider.cs (1)
271=> value.Span.Span.ToTextSpan();
CommentSelection\ToggleLineCommentCommandHandler.cs (2)
131var commentTrackingSpan = new CommentTrackingSpan(selectedSpan.Span.ToTextSpan()); 151var commentTrackingSpan = new CommentTrackingSpan(selectedSpan.Span.ToTextSpan());
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
81document, span.Span.ToTextSpan(), useDefaultBehavior: true, cancellationToken).ConfigureAwait(false);
Extensibility\NavigationBar\NavigationBarItem.cs (1)
66.ToTextSpan();
ExtractMethod\ExtractMethodCommandHandler.cs (1)
121await ExecuteWorkerAsync(view, textBuffer, span.Span.ToTextSpan(), indicatorContext).ConfigureAwait(false);
Formatting\FormatCommandHandler.FormatSelection.cs (1)
53var formattingSpan = selection[0].Span.ToTextSpan();
Formatting\FormatCommandHandler.Paste.cs (1)
76var span = trackingSpan.GetSpan(subjectBuffer.CurrentSnapshot).Span.ToTextSpan();
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
121var sessionInfo = await renameService.StartInlineSessionAsync(document, selectedSpans.Single().Span.ToTextSpan(), cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameSession.cs (1)
254_openTextBuffers[triggerSpan.Snapshot.TextBuffer].SetReferenceSpans([startingSpan.ToTextSpan()]);
IntelliSense\AsyncCompletion\CommitManager.cs (1)
322var changes = formattingService.GetFormattingChangesAsync(currentDocument, subjectBuffer, spanToFormat.Span.ToTextSpan(), cancellationToken).WaitAndGetResult(cancellationToken);
IntelliSense\ViewTextSpan.cs (2)
59return new ViewTextSpan(span.ToTextSpan()); 67return new ViewTextSpan(span.ToTextSpan());
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
316snapshotSpan.Span.ToTextSpan());
Shared\Extensions\TextChangeExtensions.cs (1)
13=> new(textChange.OldSpan.ToTextSpan(), textChange.NewLength);
SpellCheck\RoslynSpellCheckFixerProvider.cs (1)
96var subSpanBeingRenamed = span.Span.ToTextSpan();
TextDiffing\EditorTextDifferencingService.cs (2)
44diffResult.LeftDecomposition.GetSpanInOriginal(d.Left).ToTextSpan(), 45newText.GetSubText(diffResult.RightDecomposition.GetSpanInOriginal(d.Right).ToTextSpan()).ToString())).ToImmutableArray();