4 instantiations of TextDocumentEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.cs (1)
432var 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)
251textDocumentEdits.Add(new TextDocumentEdit { TextDocument = documentIdentifier, Edits = [edit] }); 294textDocumentEdits.Add(new TextDocumentEdit { TextDocument = documentIdentifier, Edits = edits });
Handler\MapCode\MapCodeHandler.cs (1)
65DocumentChanges = 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. 376public static async Task<LSP.TextDocumentEdit[]> ChangedDocumentsToTextDocumentEditsAsync<T>(IEnumerable<DocumentId> changedDocuments, Func<DocumentId, T> getNewDocumentFunc,
Handler\CodeActions\CodeActionResolveHelper.cs (5)
46using var _1 = ArrayBuilder<SumType<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>>.GetInstance(out var textDocumentEdits); 86return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<TextDocumentEdit>() }; 96return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<TextDocumentEdit>() }; 107return new LSP.WorkspaceEdit { DocumentChanges = Array.Empty<TextDocumentEdit>() }; 118return 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 42public SumType<TextDocumentEdit[], SumType<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>[]>? DocumentChanges { get; set; }