44 references to GetTextChange
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
AssertExtensions.cs (1)
46text = text.WithChanges(textDocumentEdit.Edits.Select(e => text.GetTextChange((TextEdit)e)));
Microsoft.CodeAnalysis.Razor.Workspaces (5)
CodeActions\CSharp\CSharpCodeActionResolver.cs (1)
51var csharpTextChanges = textDocumentEdit.Edits.SelectAsArray(e => csharpSourceText.GetTextChange((TextEdit)e));
CodeActions\Razor\GenerateEventHandlerCodeActionResolver.cs (1)
119var csharpTextChanges = edits.SelectAsArray(csharpSourceText.GetTextChange);
Completion\Delegation\DelegatedCompletionHelper.cs (1)
401var changes = textEdits.SelectAsArray(csharpSourceText.GetTextChange);
Formatting\FormattingUtilities.cs (2)
222var changes = edits.SelectAsArray(htmlSourceText.GetTextChange); 234var changes = edits.SelectAsArray(e => htmlSourceText.GetTextChange((TextEdit)e));
Microsoft.CodeAnalysis.Remote.Razor (4)
Completion\RemoteCompletionService.cs (1)
298var change = generatedText.GetTextChange(provisionalTextEdit);
InlayHints\RemoteInlayHintService.cs (1)
101var changes = hint.TextEdits.SelectAsArray(csharpSourceText.GetTextChange);
RemoveAndSortUsings\RemoteRemoveAndSortUsingsService.cs (2)
70return textEdits.SelectAsArray(sourceText.GetTextChange); 90return textEdits.SelectAsArray(codeDocument.Source.Text.GetTextChange);
Microsoft.VisualStudio.LanguageServices.Razor (3)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostDocumentFormattingEndpoint.cs (1)
82var htmlChanges = htmlEdits.SelectAsArray(sourceText.GetTextChange);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostOnTypeFormattingEndpoint.cs (1)
111htmlChanges = htmlEdits.SelectAsArray(sourceText.GetTextChange);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostRangeFormattingEndpoint.cs (1)
85var htmlChanges = htmlEdits.SelectAsArray(sourceText.GetTextChange);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (18)
Cohost\CohostOnTypeFormattingEndpointTest.cs (1)
169var changes = edits.Select(inputText.GetTextChange);
Cohost\CohostRangeFormattingEndpointTest.cs (1)
211var changes = edits.Select(inputText.GetTextChange);
Cohost\CohostRoslynCodeActionTest.cs (1)
273.Select(e => generatedSourceText.GetTextChange((TextEdit)e)));
Cohost\CohostRoslynRenameTest.cs (1)
344.Select(e => inputText.GetTextChange((TextEdit)e));
Cohost\CohostWrapWithTagEndpointTest.cs (1)
228var changedDoc = sourceText.WithChanges(result.TextEdits.Select(sourceText.GetTextChange));
Cohost\Formatting\FormattingLogTest.cs (1)
105var formattedText = sourceText.WithChanges(edits.Select(sourceText.GetTextChange));
Cohost\Formatting\FormattingTestBase.cs (1)
90var changes = edits.Select(inputText.GetTextChange);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
49var change = source.GetTextChange(edit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionProviderTest.cs (1)
123var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.GetTextChange((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
85var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.GetTextChange((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (3)
1498changedText = text.WithChanges(text.GetTextChange(edit)); 1505changedText = text.WithChanges(text.GetTextChange(textEdit)); 1545changedText = changedText.WithChanges(result.AdditionalTextEdits.Select(changedText.GetTextChange));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
266.Select(inputText.GetTextChange);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
615var change = sourceText.GetTextChange(result.TextEdit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (2)
82var htmlChangesResult = htmlEditsResult.Select(source.GetTextChange); 105var changes = edits.Select(inputText.GetTextChange);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
696var changes = edits.Select(inputText.GetTextChange);
Microsoft.VisualStudioCode.RazorExtension (3)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostDocumentFormattingEndpoint.cs (1)
82var htmlChanges = htmlEdits.SelectAsArray(sourceText.GetTextChange);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostOnTypeFormattingEndpoint.cs (1)
111htmlChanges = htmlEdits.SelectAsArray(sourceText.GetTextChange);
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Formatting\CohostRangeFormattingEndpoint.cs (1)
85var htmlChanges = htmlEdits.SelectAsArray(sourceText.GetTextChange);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (10)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
49var change = source.GetTextChange(edit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionProviderTest.cs (1)
123var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.GetTextChange((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\Html\HtmlCodeActionResolverTest.cs (1)
85var changed = text.WithChanges(documentEdits[0].Edits.Select(e => text.GetTextChange((TextEdit)e)));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (3)
1498changedText = text.WithChanges(text.GetTextChange(edit)); 1505changedText = text.WithChanges(text.GetTextChange(textEdit)); 1545changedText = changedText.WithChanges(result.AdditionalTextEdits.Select(changedText.GetTextChange));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostInlayHintEndpointTest.cs (1)
266.Select(inputText.GetTextChange);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
615var change = sourceText.GetTextChange(result.TextEdit);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTestBase.cs (1)
105var changes = edits.Select(inputText.GetTextChange);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingTest.cs (1)
696var changes = edits.Select(inputText.GetTextChange);