4 instantiations of TextDocumentEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.cs (1)
432
var documentEdits = uriToTextEdits.GroupBy(uriAndEdit => uriAndEdit.Uri, uriAndEdit => new LSP.SumType<LSP.TextEdit, LSP.AnnotatedTextEdit>(uriAndEdit.TextEdit), (uri, edits) => new LSP.
TextDocumentEdit
Handler\CodeActions\CodeActionResolveHelper.cs (2)
251
textDocumentEdits.Add(new
TextDocumentEdit
{ TextDocument = documentIdentifier, Edits = [edit] });
294
textDocumentEdits.Add(new
TextDocumentEdit
{ TextDocument = documentIdentifier, Edits = edits });
Handler\MapCode\MapCodeHandler.cs (1)
65
DocumentChanges = uriToEditsMap.Select(kvp => new
TextDocumentEdit
10 references to TextDocumentEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Extensions\ProtocolConversions.cs (2)
373
/// Compute all the <see cref="LSP.
TextDocumentEdit
"/> for the input list of changed documents.
376
public static async Task<LSP.
TextDocumentEdit
[]> ChangedDocumentsToTextDocumentEditsAsync<T>(IEnumerable<DocumentId> changedDocuments, Func<DocumentId, T> getNewDocumentFunc,
Handler\CodeActions\CodeActionResolveHelper.cs (5)
46
using var _1 = ArrayBuilder<SumType<
TextDocumentEdit
, CreateFile, RenameFile, DeleteFile>>.GetInstance(out var textDocumentEdits);
86
return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<
TextDocumentEdit
>() };
96
return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<
TextDocumentEdit
>() };
107
return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<
TextDocumentEdit
>() };
118
return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<
TextDocumentEdit
>() };
Protocol\WorkspaceEdit.cs (3)
27
/// document changes are either an array of <see cref="
TextDocumentEdit
"/> to express changes
42
public SumType<
TextDocumentEdit
[], SumType<
TextDocumentEdit
, CreateFile, RenameFile, DeleteFile>[]>? DocumentChanges { get; set; }