10 references to TextChangeToTextEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Extensions\ProtocolConversions.cs (1)
426uriToTextEdits.Add((oldDocument.GetURI(), TextChangeToTextEdit(textChange, oldText)));
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
72return [.. changes.Select(change => ProtocolConversions.TextChangeToTextEdit(change, originalSourceText))];
Handler\CodeActions\CodeActionResolveHelper.cs (1)
301var edits = textChanges.Select(tc => new LSP.SumType<LSP.TextEdit, LSP.AnnotatedTextEdit>(ProtocolConversions.TextChangeToTextEdit(tc, oldText))).ToArray();
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (2)
49return [.. formattingChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, text))]; 59return [.. textChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, text))];
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
105return [.. textChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, documentSyntax.Text))];
Handler\InlayHint\InlayHintHandler.cs (1)
75var textEdit = ProtocolConversions.TextChangeToTextEdit(hint.ReplacementTextChange.Value, text);
Handler\MapCode\MapCodeHandler.cs (1)
110var textEdits = textChanges.Value.Select(change => ProtocolConversions.TextChangeToTextEdit(change, oldText)).ToArray();
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
49edits.AddRange(textChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, text)));
Implementation\LanguageServer\Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
52edits.AddRange(textChanges.Select(change => ProtocolConversions.TextChangeToTextEdit(change, text)));