9 writes to TextEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (3)
153TextEdit = new LSP.TextEdit 218TextEdit = new LSP.TextEdit 316TextEdit = edit
Microsoft.CodeAnalysis.Razor.Workspaces (4)
AutoInsert\AutoClosingTagOnAutoInsertProvider.cs (2)
67TextEdit = editForEndTag, 84TextEdit = edit,
AutoInsert\CloseTextTagOnAutoInsertProvider.cs (1)
35TextEdit = edit,
Protocol\AutoInsert\RemoteAutoInsertTextEdit.cs (1)
24TextEdit = LspFactory.CreateTextEdit(edit.LinePositionSpan, edit.NewText),
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
569TextEdit = new TextEdit() { NewText = delegatedResponseText, Range = new() { Start = start, End = end } },
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
569TextEdit = new TextEdit() { NewText = delegatedResponseText, Range = new() { Start = start, End = end } },
10 references to TextEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
OnAutoInsert\AbstractOnAutoInsertTests.cs (1)
57var actualText = ApplyTextEdits([result.TextEdit], documentText);
OnAutoInsert\RawStringOnAutoInsertTests.cs (1)
225var actualText = ApplyTextEdits([result.TextEdit], documentText);
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Protocol\AutoInsert\RemoteAutoInsertTextEdit.cs (2)
17edit.TextEdit.Range.ToLinePositionSpan(), 18edit.TextEdit.NewText,
Microsoft.CodeAnalysis.Remote.Razor (2)
AutoInsert\RemoteAutoInsertService.cs (2)
159var csharpTextChange = new TextChange(csharpSourceText.GetTextSpan(autoInsertResponseItem.TextEdit.Range), autoInsertResponseItem.TextEdit.NewText);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
42var edited = edit is null ? source : ApplyEdit(source, edit.TextEdit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
615var change = sourceText.GetTextChange(result.TextEdit);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
42var edited = edit is null ? source : ApplyEdit(source, edit.TextEdit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
615var change = sourceText.GetTextChange(result.TextEdit);